open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.21k stars 9.4k forks source link

Incompatible version with `mmcv` #11763

Open jhj0517 opened 4 months ago

jhj0517 commented 4 months ago

Thanks for wonderful project.

Describe the bug Impossible to use mmdet with mmcv==2.2.0. According to documentation, for torch 2.2.x and above, The only compatible version of mmcv is 2.2.0. But mmdet is restricted to mmcv<2.2.0, so it's impossible to use mmdet and mmcv together with versions above torch 2.2.x.

Reproduction

pip install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.3/index.html
pip install mmdet

Then I got the incompatible version error : "MMCV==2.2.0 is used but incompatible."

Bug fix