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

AssertionError: mmcv==1.7.1 is used but incompatible. Please install mmcv-full>=(2, 0, 0, 0, -1, 1), <(2, 1, 0, 0, 0, 0). #1756

Closed
ArrXiao opened this issue Apr 15, 2023 · 7 comments
Assignees

Comments

@ArrXiao
Copy link

ArrXiao commented Apr 15, 2023

I run python tools/test.py configs/real_basicvsr/realbasicvsr_c64b20-1x30x8_8xb1-lr5e-5-150k_reds.py https://download.openmmlab.com/mmediting/restorers/real_basicvsr/realbasicvsr_c64b20_1x30x8_lr5e-5_150k_reds_20211104-52f77c2c.pth

AssertionError: mmcv==1.7.1 is used but incompatible. Please install mmcv-full>=(2, 0, 0, 0, -1, 1), <(2, 1, 0, 0, 0, 0).

image
but mmcv-full has changed,not have 2.0.0,I dont know how to fix.
image

@Z-Fran
Copy link
Collaborator

Z-Fran commented Apr 17, 2023

Please run ‘pip install mmcv==2.0.0’

@Z-Fran Z-Fran assigned Z-Fran and unassigned Yshuo-Li Apr 17, 2023
@ArrXiao
Copy link
Author

ArrXiao commented Apr 17, 2023

Please run ‘pip install mmcv==2.0.0’

In the picture above, I have installed mmcv2.0.0, but there is a problem with recognition

@Z-Fran
Copy link
Collaborator

Z-Fran commented Apr 17, 2023

Please run ‘pip uninstall mmcv-full’

@kaigeli
Copy link

kaigeli commented Apr 21, 2023

when i install mmcv-full, the max mmcv version is 1.7.1. test error:
python demo/demo_mot_vis.py configs/mot/deepsort/sort_faster-rcnn_fpn_4e_mot17-private.py --input demo/demo.mp4 --output mot.mp4
/home/kaigeli/.local/lib/python3.8/site-packages/mmcv/init.py:20: UserWarning: On January 1, 2023, MMCV will release v2.0.0, in which it will remove components related to the training process and add a data transformation module. In addition, it will rename the package names mmcv to mmcv-lite and mmcv-full to mmcv. See https://github.com/open-mmlab/mmcv/blob/master/docs/en/compatibility.md for more details.
warnings.warn(
Traceback (most recent call last):
File "demo/demo_mot_vis.py", line 9, in
from mmtrack.apis import inference_mot, init_model
File "/home/kaigeli/program/mmtracking/mmtrack/init.py", line 5, in
import mmdet
File "/home/kaigeli/.local/lib/python3.8/site-packages/mmdet/init.py", line 16, in
assert (mmcv_version >= digit_version(mmcv_minimum_version)
AssertionError: MMCV==1.7.1 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.1.0.

then, I uninstall mmcv-full, and install mmcv=2.0.0, I got this error:
python demo/demo_mot_vis.py configs/mot/deepsort/sort_faster-rcnn_fpn_4e_mot17-private.py --input demo/demo.mp4 --output mot.mp4
Traceback (most recent call last):
File "demo/demo_mot_vis.py", line 9, in
from mmtrack.apis import inference_mot, init_model
File "/home/kaigeli/program/mmtracking/mmtrack/init.py", line 62, in
assert (mmcv_min_version <= mmcv_version < mmcv_max_version),
AssertionError: MMCV==2.0.0 is used but incompatible. Please install mmcv>=1.3.17, <2.0.0.

@Z-Fran
Copy link
Collaborator

Z-Fran commented Apr 28, 2023

Closing due to inactivity, please reopen if there are any further problems.

@Z-Fran Z-Fran closed this as completed Apr 28, 2023
@TheWayToGlary
Copy link

It renamed the package name mmcv to mmcv-lite and mmcv-full to mmcv in PR open-mmlab/mmcv#2235. Also, change the default value of the environment variable MMCV_WITH_OPS from 0 to 1.

@TheWayToGlary
Copy link

It could be a code refactoring issue. Because the company refactored the code, the version we downloaded shows mmcv, but is actually equivalent to the previous MMCV-Full

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

5 participants