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

[ModuleNotFoundError: No module named 'mmcv.cnn.utils.weight_init'] #1856

Open
jinglin80 opened this issue Dec 28, 2023 · 0 comments
Open

[ModuleNotFoundError: No module named 'mmcv.cnn.utils.weight_init'] #1856

jinglin80 opened this issue Dec 28, 2023 · 0 comments

Comments

@jinglin80
Copy link

jinglin80 commented Dec 28, 2023

Branch

main branch (mmpretrain version)

Describe the bug

Tried to use swin_transformer.py but got an import error for line 11 of swin_transformer.py

ModuleNotFoundError: No module named 'mmcv.cnn.utils.weight_init'

I used the docker build from Dockerfile.
May you help?

Environment

python -c "import mmpretrain.utils;import pprint;pprint.pp(dict(mmpretrain.utils.collect_env()))"
Output:
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'pprint' has no attribute 'pp'

Other information

Should we update the Dockerfile and/or swin_transformer.py?

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