Open SHAMIK-97 opened 2 months ago
I had the same problem when I was trying to follow their tutorial. I think the problem is with the pytorch version. Even I upgraded my pytorch to 2.4 and I got this version mismatch error.
What worked for me is that I downgraded my pytorch to 2.1.2 with cuda 12.1 and then it started working. Maybe you could try that and see if that helps.
i just changed the version to 2.2.1 in mmdet/init.py worked for me :) mmcv_minimum_version = '2.0.0rc4' mmcv_maximum_version = '2.2.1' mmcv_version = digit_version(mmcv.version)
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug mmcv in mmdet use ver==2.2.0 but mmseg uses ver<=2.2.0
Reproduction
!pip install -U openmim !mim install mmengine !mim install "mmcv>=2.0.0" !pip install cityscapesscripts !pip install ftfy !mim install "mmdet"
!git clone https://github.com/open-mmlab/mmsegmentation.git %cd mmsegmentation !git checkout main !pip install -e .
import mmseg from mmseg.apis import inference_model, init_model, show_result_pyplot import mmcv print(mmseg.version)
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!