hysts / anime-face-detector

Anime Face Detector using mmdet and mmpose
MIT License
416 stars 24 forks source link

mmcv is updated to 1.7.1 #13

Open treksis opened 1 year ago

treksis commented 1 year ago

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 commented 1 year ago

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

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