Traceback (most recent call last):
File "C:\Projects\SadTalker_1\SadTalker\Launcher.py", line 199, in
start()
File "C:\Projects\SadTalker_1\SadTalker\Launcher.py", line 192, in start
from app import sadtalker_demo
File "C:\Projects\SadTalker_1\SadTalker\app.py", line 3, in
from src.gradio_demo import SadTalker
File "C:\Projects\SadTalker_1\SadTalker\src\gradio_demo.py", line 3, in
from src.utils.preprocess import CropAndExtract
File "C:\Projects\SadTalker_1\SadTalker\src\utils\preprocess.py", line 2, in
import cv2, os, sys, torch
File "C:\Projects\SadTalker_1\SadTalker\venv\lib\site-packages\cv2__init.py", line 181, in
bootstrap()
File "C:\Projects\SadTalker_1\SadTalker\venv\lib\site-packages\cv2__init.py", line 175, in bootstrap
if load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Projects\SadTalker_1\SadTalker\venv\lib\site-packages\cv2__init.py", line 28, in load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Users\HP\AppData\Local\Programs\Python\Python311\lib\importlib__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Projects\SadTalker_1\SadTalker\venv\lib\site-packages\cv2\typing\init__.py", line 69, in
NumPyArrayGeneric = numpy.ndarray[typing.Any, numpy.dtype[numpy.generic]]
TypeError: 'numpy._DTypeMeta' object is not subscriptable
Traceback (most recent call last): File "C:\Projects\SadTalker_1\SadTalker\Launcher.py", line 199, in
start()
File "C:\Projects\SadTalker_1\SadTalker\Launcher.py", line 192, in start
from app import sadtalker_demo
File "C:\Projects\SadTalker_1\SadTalker\app.py", line 3, in
from src.gradio_demo import SadTalker
from src.utils.preprocess import CropAndExtract
File "C:\Projects\SadTalker_1\SadTalker\src\utils\preprocess.py", line 2, in
import cv2, os, sys, torch
File "C:\Projects\SadTalker_1\SadTalker\venv\lib\site-packages\cv2__init.py", line 181, in
bootstrap()
File "C:\Projects\SadTalker_1\SadTalker\venv\lib\site-packages\cv2__init.py", line 175, in bootstrap
if load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Projects\SadTalker_1\SadTalker\venv\lib\site-packages\cv2__init.py", line 28, in load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Users\HP\AppData\Local\Programs\Python\Python311\lib\importlib__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Projects\SadTalker_1\SadTalker\venv\lib\site-packages\cv2\typing\ init__.py", line 69, in
NumPyArrayGeneric = numpy.ndarray[typing.Any, numpy.dtype[numpy.generic]]
TypeError: 'numpy._DTypeMeta' object is not subscriptable
File "C:\Projects\SadTalker_1\SadTalker\src\gradio_demo.py", line 3, in