hysts / anime-face-detector

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

There is an error in demo.ipynb #11

Closed 283pm closed 2 years ago

283pm commented 2 years ago

First of all, thank you for sharing your program.

Today I tried to run the program in GoogleColab and got the following error in the import anime_face_detector section. Do you know any solutions?

Thank you.

ImportError Traceback (most recent call last) in () 5 import numpy as np 6 ----> 7 import anime_face_detector

7 frames /usr/lib/python3.7/importlib/init.py in import_module(name, package) 125 break 126 level += 1 --> 127 return _bootstrap._gcd_import(name[level:], package, level) 128 129

ImportError: /usr/local/lib/python3.7/dist-packages/mmcv/_ext.cpython-37m-x86_64-linux-gnu.so: undefined symbol:_ZNK3c1010TensorImpl36is_contiguous_nondefault_policy_implENS_12MemoryFormatE

hysts commented 2 years ago

Hi, @283pm Thanks for reporting this. I've just updated the notebook. I think the error was caused because the default version of torch in Colab was updated. I'll close this issue, but feel free to reopen if you still have errors.