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

cannot import name 'Config' from 'mmcv' #82

Open
Ergou-Liu opened this issue Apr 23, 2023 · 3 comments
Open

cannot import name 'Config' from 'mmcv' #82

Ergou-Liu opened this issue Apr 23, 2023 · 3 comments

Comments

@Ergou-Liu
Copy link

No description provided.

@Ergou-Liu
Copy link
Author

Lite-HRNet$ python ./tools/train.py
Traceback (most recent call last):
File "./tools/train.py", line 9, in
from mmcv import Config, DictAction
ImportError: cannot import name 'Config' from 'mmcv' (/home/name/anaconda3/envs/lite-hrnet/lib/python3.8/site-packages/mmcv/init.py)

@haowei2020
Copy link

Lite-HRNet$ python ./tools/train.py Traceback (most recent call last): File "./tools/train.py", line 9, in from mmcv import Config, DictAction ImportError: cannot import name 'Config' from 'mmcv' (/home/name/anaconda3/envs/lite-hrnet/lib/python3.8/site-packages/mmcv/init.py)

貌似新的mmcv没有Config这个类的定义,挪到了mmengin,你可以装个低版本的mmcv,比如1.6的

@Tony-958
Copy link

Tony-958 commented Dec 7, 2023

1.6 的没有 mmcv.transforms 这个吖。你们用的哪个 mmcv 呢

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

3 participants