You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Homework assigned by my teacher asked me to build mmcls environment on anaconda and try to run the demo, What I installed was mmcv2.1.0 , pytorch with non-cuda, I used mim to download such file with the help online.
Problem solved, I paid a remote assistance for helping me to build the mmcls.
Briefly speaking, its problem about version.
When I installed the official models, It asked me to download the mmengine with the warning
from mmengine import Config
ModuleNotFoundError: No module named 'mmengine
......
ImportError: Please install mmengine to use the download command: `mim install mmengine
So I did what It want me to do, sure ,then I coded mim install mmengine
When I finally thought nothing would come out, and python demo/image_demo.py demo/demo.JPEG resnet50_8xb32_in1k.py resnet50_8xb32_in1k_20210831-ea4938fc.pth --device cpu
BOOM AssertionError: MMCV==1.7.1 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.1.0.
This was when I asked for help.
He removed my mmcv-full and then
and then a new bug came out. File "D:\ANACONDA\envs\open-mmlab\lib\site-packages\mmengine\infer\infer.py", line 222, in __call__ if self.show_progress else inputs): AttributeError: 'ImageClassificationInferencer' object has no attribute 'show_progress'
After checked the Error came fromFile "D:\ANACONDA\envs\open-mmlab\lib\site-packages\mmengine\infer\infer.py
From mmengine, check the mmclassification\mmcls\visualization_init_.py
It says mmengine_minimum_version = '0.7.1' mmengine_maximum_version = '1.0.0' mmengine_version = digit_version(mmengine.__version__)
Then I download the mmengine==0.7.1
Finally, problem solverd
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Homework assigned by my teacher asked me to build mmcls environment on anaconda and try to run the demo, What I installed was mmcv2.1.0 , pytorch with non-cuda, I used mim to download such file with the help online.
mim download mmcls --config resnet50_8xb32_in1k --dest .
Then started with the code below on my anacunda evn.
python demo/image_demo.py demo/demo.JPEG resnet50_8xb32_in1k.py resnet50_8xb32_in1k_20210831-ea4938fc.pth --device cpu
It said :
AssertionError: MMCV==2.1.0 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.1.0.
Then I reinstalled mmcv 2.0.0rc4 and tried again but it cannot be fixed and said
image_demo.py: error: unrecognized arguments: resnet50_8xb32_in1k_20210831-ea4938fc.pth
Beta Was this translation helpful? Give feedback.
All reactions