Hey there, I signed up to HuggingFace to duplicate the SadTalker space, it worked initially, the next day I signed back on but it had a runtime error, since then the same issue has persisted. I assume its not an issue with SadTalker as their space is still up and running, but I’m not 100% sure.
Runtime error
Traceback (most recent call last):
File "/home/user/app/app.py", line 4, in <module>
from src.gradio_demo import SadTalker
File "/home/user/app/src/gradio_demo.py", line 3, in <module>
from src.facerender.pirender_animate import AnimateFromCoeff_PIRender
File "/home/user/app/src/facerender/pirender_animate.py", line 2, in <module>
import cv2
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/__init__.py", line 175, in bootstrap
if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/__init__.py", line 28, in __load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/typing/__init__.py", line 69, in <module>
NumPyArrayGeneric = numpy.ndarray[typing.Any, numpy.dtype[numpy.generic]]
TypeError: 'numpy._DTypeMeta' object is not subscriptable
Container logs:
Failed to retrieve error logs: Failed to initialize stream (code 404)
I sometimes receive these container logs:
===== Application Startup at 2023-08-16 22:01:42 =====
Traceback (most recent call last):
File "/home/user/app/app.py", line 4, in <module>
from src.gradio_demo import SadTalker
File "/home/user/app/src/gradio_demo.py", line 3, in <module>
from src.facerender.pirender_animate import AnimateFromCoeff_PIRender
File "/home/user/app/src/facerender/pirender_animate.py", line 2, in <module>
import cv2
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/__init__.py", line 175, in bootstrap
if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/__init__.py", line 28, in __load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/typing/__init__.py", line 69, in <module>
NumPyArrayGeneric = numpy.ndarray[typing.Any, numpy.dtype[numpy.generic]]
TypeError: 'numpy._DTypeMeta' object is not subscriptable
I have tried, restarting, rebooting and duplicating again, with the same outcomes. Any help would be appreciated