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

MMSelfSup is incompatible with MMCV==2.1.0 [Bug] #774

Open tungts1101 opened 7 months ago

tungts1101 commented 7 months ago

Branch

main branch (1.x version)

Prerequisite

Environment

System information: Ubuntu, GPU A100 Install pytorch with cuda support through conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia

Describe the bug

Following the documentation, the command print(mmselfsup.__version__) raises the error of incompatibility between MMSelfSup version 1.0.0 and MMCV version 2.1.0. I tried to lower the version of MMCV to 2.0.0rc4 but got another error in building the wheel for MMCV.

Reproduces the problem - code sample

No response

Reproduces the problem - command or script

No response

Reproduces the problem - error message

No response

Additional information

No response

JamesHoi commented 4 months ago

I have same issue because my torch version is 2.2.1 and it works for me that downgrade version to 2.0.1 with cuda11.8.

environment:
cuda 11.8
torch 2.0.1
torchvision 0.15.2
mmcv 2.0.0
mmengine 0.10.3
mmcls 1.0.0rc6