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

mmcv is updated to 1.7.1 #13

Open
treksis opened this issue Jan 29, 2023 · 1 comment
Open

mmcv is updated to 1.7.1 #13

treksis opened this issue Jan 29, 2023 · 1 comment

Comments

@treksis
Copy link

treksis commented Jan 29, 2023

Hi,

mmcv is updated to 1.7.1 as of 2023.

Here are errors

---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
[<ipython-input-10-53e3c28fb569>](https://localhost:8080/#) in <module>
      5 import numpy as np
      6 
----> 7 import anime_face_detector

2 frames

[/usr/local/lib/python3.8/dist-packages/mmpose/__init__.py](https://localhost:8080/#) in <module>
     22 
     23 
---> 24 assert (mmcv_version >= digit_version(mmcv_minimum_version)
     25         and mmcv_version <= digit_version(mmcv_maximum_version)), \
     26     f'MMCV=={mmcv.__version__} is used but incompatible. ' \
AssertionError: MMCV==1.7.1 is used but incompatible. Please install mmcv>=1.3.8, <=1.7.0.

image

image

@SkyoKen
Copy link

SkyoKen commented Feb 6, 2023

I had the same problem in Google Colab. I have solved it now.

  • mmcv is updated to 1.7.1, and numpy.ndarray size also changed.
  • So you need !pip install numpy scipy numba --upgrade and restart the runtime.

After updating numpy, I executed the following code. And it worked.

!pip install openmim>=0.2.1
#!mim install mmcv-full>=1.6.1
!pip install mmcv-full==1.7.0 -f https://download.openmmlab.com/mmcv/dist/cu116/torch1.13/index.html
!pip install mmdet>=2.25.1
!pip install mmpose>=0.28.1
!pip install -U moviepy>=1.0.3
!git clone https://github.com/hysts/anime-face-detector

%cd anime-face-detector

import cv2
import matplotlib.pyplot as plt
import numpy as np
from anime_face_detector import create_detector

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

2 participants