Installation error #454
-
from mmgen.apis import init_model,sample_unconditional_model |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
This comment has been hidden.
This comment has been hidden.
-
You should install mmcv 1.5.0, e.g., pip install mmcv-full==1.5.0 |
Beta Was this translation helpful? Give feedback.
-
For those who has the same error |
Beta Was this translation helpful? Give feedback.
For those who has the same error
Error:
from mmgen.apis import init_model,sample_unconditional_model
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\BrendanDesktop\anaconda3\envs\openmmlab\lib\site-packages\mmgen_init_.py", line 24, in
assert (mmcv_version >= digit_version(mmcv_minimum_version)
AssertionError: MMCV==1.6.1 is used but incompatible. Please install mmcv>=1.3.0, <=1.5.0.
My Solution:
Check the init.py in the mmgeneration/mmgen folder. Find the code "mmcv_maximum_version = '1.6.0'" and replace it to "mmcv_maximum_version = '1.6.1'"