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

How to match vision of mmdet with mmcv or mmcv-full? #54

Open
Shawn9257 opened this issue Jan 22, 2024 · 0 comments
Open

How to match vision of mmdet with mmcv or mmcv-full? #54

Shawn9257 opened this issue Jan 22, 2024 · 0 comments

Comments

@Shawn9257
Copy link

As show in readme file. I use mmcv == 1.7.2, however, when I use mmdet>2.25.3, it will give me:

ModuleNotFoundError: No module named 'mmcv._ext'
    ext_module = ext_loader.load_ext(
  File "/opt/conda/lib/python3.10/site-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
    ext = importlib.import_module('mmcv.' + name)
  File "/opt/conda/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext' 

and for lower vision of mmdet like mmdet==2.24.1, it will give me that :

Traceback (most recent call last):
  File "/root/workdir/ConsistentTeacher/tools/train.py", line 14, in <module>
    from mmdet import __version__
  File "/opt/conda/lib/python3.10/site-packages/mmdet/__init__.py", line 25, in <module>
    and mmcv_version <= digit_version(mmcv_maximum_version)), \
AssertionError: MMCV==1.7.2 is used but incompatible. Please install mmcv>=1.3.17, <=1.7.0.
Traceback (most recent call last):
  File "/root/workdir/ConsistentTeacher/tools/train.py", line 14, in <module>
    from mmdet import __version__
  File "/opt/conda/lib/python3.10/site-packages/mmdet/__init__.py", line 25, in <module>
    and mmcv_version <= digit_version(mmcv_maximum_version)), \
AssertionError: MMCV==1.7.2 is used but incompatible. Please install mmcv>=1.3.17, <=1.7.0.

and for the new vision it is not match to mmdet 3.X.

The environment is here:

torch==1.12.0
torchaudio==0.12.0
mmcv ==1.7.0
mmcv-full ==1.7.2
mmdet== 2.25.3
mmengine == 0.10.2 
CUDA = 11.6

What is the correct vision of mmdet?

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

1 participant