open-mmlab / mmselfsup

OpenMMLab Self-Supervised Learning Toolbox and Benchmark
https://mmselfsup.readthedocs.io/en/latest/
Apache License 2.0
3.14k stars 429 forks source link

Installation of MMCv #737

Closed kalikhademi closed 1 year ago

kalikhademi commented 1 year ago

Hi,

I have followed the steps in your documentation at this link:https://mmselfsup.readthedocs.io/en/dev-1.x/get_started.html

I used command mim install 'mmcv>=2.0.0rc1' to install mmcv and it installs mmcv 2.0.0 correctly. When I wanted to import mmselfsup in the python script, it gives me the following error:

Running check script on a single CPU core Traceback (most recent call last): File "/blue/second_study_codebase/mmselfsup/check.py", line 1, in import mmselfsup File "/blue/second_study_codebase/mmselfsup/mmselfsup/init.py", line 2, in import mmcls File "home/selfsup/lib/python3.9/site-packages/mmcls/init.py", line 17, in assert (mmcv_version >= digit_version(mmcv_minimum_version) AssertionError: MMCV==2.0.0 is used but incompatible. Please install mmcv>=2.0.0rc1, <2.0.0.

I also tried to install the mmcv-full but it could not be compiled. I also tried to install packages through requirements.txt in the repo and it still installs version 2.0.0. I appreciate it if you could help me as I am new on this!

Thanks, Kiana

fangyixiao18 commented 1 year ago

sorry for the inconvenience, please use command mim install 'mmcv==2.0.0rc4' to install mmcv