Skip to content

Installation error #454

Answered by drnighthan
drnighthan asked this question in How-to
Discussion options

You must be logged in to vote

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'"

Replies: 3 comments

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zengyh1900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
How-to
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #376 on October 12, 2022 11:13.