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

[Bug] ImportError: cannot import name 'MODELS' from 'mmcv.cnn' ,安装的是mmcv2.0.0.rc4也不行 #3178

Open
2 tasks done
hellowwrod opened this issue Sep 23, 2024 · 0 comments

Comments

@hellowwrod
Copy link

Prerequisite

Environment

pytorch 1.13.0+cu117
mmcv 2.0.0.rc4

Reproduces the problem - code sample

from mmcv.cnn import MODELS as MMCV_MODELS
from mmcv.utils import Registry

Reproduces the problem - command or script

File "/home/mmyolo/mmyolo/models/builder.py", line 4, in
from mmcv.cnn import MODELS as MMCV_MODELS
ImportError: cannot import name 'MODELS' from 'mmcv.cnn' (/opt/conda/envs/wyh-yolo/lib/python3.8/site-packages/mmcv/cnn/init.py)

Reproduces the problem - error message

ImportError: cannot import name 'MODELS' from 'mmcv.cnn' (/opt/conda/envs/wyh-yolo/lib/python3.8/site-packages/mmcv/cnn/init.py)

Additional information

dont know

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