ModuleNotFoundError: No module named 'mmcv.transforms' #3013
Unanswered
yeouyang326
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to build a model using the Python API:
from mmseg.apis import init_segmentor
model = init_segmentor(config_file, checkpoint_file, device='cuda:0')
But I received a bug:
ModuleNotFoundError: No module named 'mmcv.transforms'
And I have tried:
pip uninstall mmcv
pip install "mmcv>=2.0.0rc1"
(but when I import mmcv
print(mmcv.version) mmcv's version was still 1.7.1, instead 2.1.0)
What should I modify?Thanks!!!!!
Beta Was this translation helpful? Give feedback.
All reactions