Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete installation instructions #8

Open
maartenvds opened this issue Jan 17, 2024 · 5 comments
Open

Incomplete installation instructions #8

maartenvds opened this issue Jan 17, 2024 · 5 comments

Comments

@maartenvds
Copy link

Hi,

I'm trying to install this package using the requirements.txt file, but it seems the be incomplete. It is at least missing torch and torchvision.
I can install them manually, but I don't know what exact version works well with mmcv-full 1.3.8 and mmgen 0.5.0.

Could you please provide the used pytorch version and also the exact python version.

Thanks

@lizhihao6
Copy link
Collaborator

Hi, maartenvds

Pytorch 1.7.0 with Python 3.7 should be compatible and work well.

@maartenvds
Copy link
Author

Hi lizhihao6,

The installation instructions I currently use are (based on mmgen installation instructions, your mmcv-full version, mmgen version and trial and error):

First pytorch

pip install torch==1.7.0 torchvision

Then mmcv-full

pip install mmcv-full==1.3.8 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.7.0/index.html

Then the other packages

pip install mmcls mmgen==0.5.0 matplotlib==3.5.1 rawpy

Installation completes without errors.

Then I run:

python inference.py --ckpt checkpoints/bdd100k_rgb_to_iphone_raw.pth --rgb resources/bdd100k.jpg

which gives:

File "/home/maarten/.virtualenvs/p37_rho_vision/lib/python3.7/site-packages/mmgen/datasets/pipelines/augmentation.py", line 4, in <module>
    from mmcls.datasets import PIPELINES as CLS_PIPELINE
  File "/home/maarten/.virtualenvs/p37_rho_vision/lib/python3.7/site-packages/mmcls/__init__.py", line 57, in <module>
    f'MMCV=={mmcv.__version__} is used but incompatible. ' \
AssertionError: MMCV==1.3.8 is used but incompatible. Please install mmcv>=1.3.16, <=1.5.0.

What happens here is that mmgen 0.5.0 requires mmcls 0.18.0, which in turn requires mmcv>=1.3.16, <=1.5.0. But you apparently using mmcv-full 1.3.8, so I'm not there yet.

This is quite the versioning nightmare. I got around it by installing mmcls 0.17.0, which seems to work but it gives pip dependency errors.

Could you, for the sake of easily reproducing your installation, do a pip freeze or something so I can get a hint on all of your package versions?

@XiaMu799
Copy link

Hi lizhihao6,

The installation instructions I currently use are (based on mmgen installation instructions, your mmcv-full version, mmgen version and trial and error):

First pytorch

pip install torch==1.7.0 torchvision

Then mmcv-full

pip install mmcv-full==1.3.8 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.7.0/index.html

Then the other packages

pip install mmcls mmgen==0.5.0 matplotlib==3.5.1 rawpy

Installation completes without errors.

Then I run:

python inference.py --ckpt checkpoints/bdd100k_rgb_to_iphone_raw.pth --rgb resources/bdd100k.jpg

which gives:

File "/home/maarten/.virtualenvs/p37_rho_vision/lib/python3.7/site-packages/mmgen/datasets/pipelines/augmentation.py", line 4, in <module>
    from mmcls.datasets import PIPELINES as CLS_PIPELINE
  File "/home/maarten/.virtualenvs/p37_rho_vision/lib/python3.7/site-packages/mmcls/__init__.py", line 57, in <module>
    f'MMCV=={mmcv.__version__} is used but incompatible. ' \
AssertionError: MMCV==1.3.8 is used but incompatible. Please install mmcv>=1.3.16, <=1.5.0.

What happens here is that mmgen 0.5.0 requires mmcls 0.18.0, which in turn requires mmcv>=1.3.16, <=1.5.0. But you apparently using mmcv-full 1.3.8, so I'm not there yet.

This is quite the versioning nightmare. I got around it by installing mmcls 0.17.0, which seems to work but it gives pip dependency errors.

Could you, for the sake of easily reproducing your installation, do a pip freeze or something so I can get a hint on all of your package versions?

Hello, have you ever run results using paired data sets? For example, MIT-Adobe FiveK dataset, the result of my running was not ideal

@maartenvds
Copy link
Author

I finally managed to get it working correctly with:

python version 3.8

  1. Install pytorch:
pip install torch==1.8.0 torchvision --index-url https://download.pytorch.org/whl/cu102
  1. Install mmcv:
pip install mmcv-full==1.3.8 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html
  1. Install the remaining requirements:
pip install mmcls mmgen==0.5.0 matplotlib==3.5.1 rawpy yapf==0.40.1
  1. Dependency issue

Finally, to work around a runtime dependency issue, you need to:

pip install mmcls==0.17.0

This will create a pip dependency error, but you can ignore it.

@XiaMu799
Copy link

have you ever run results using paired data sets? For example, MIT-Adobe FiveK dataset, the result of my running was not ideal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants