TMElyralab / MuseTalk

MuseTalk: Real-Time High Quality Lip Synchorization with Latent Space Inpainting
Other
1.85k stars 223 forks source link

MacBook M1 Pro 14" / MacOS 14.4.1 / Python 3.10.14 / 4152: error: (-215:Assertion failed) !ssize.empty() in function 'resize' #82

Closed git-zengmiao closed 1 month ago

git-zengmiao commented 1 month ago

Traceback (most recent call last): File "/opt/homebrew/Caskroom/miniconda/base/envs/musetalk/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/homebrew/Caskroom/miniconda/base/envs/musetalk/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/Users/mark/Programs.localized/Projects/MuseTalk/scripts/inference.py", line 161, in main(args) File "/opt/homebrew/Caskroom/miniconda/base/envs/musetalk/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/Users/mark/Programs.localized/Projects/MuseTalk/scripts/inference.py", line 90, in main crop_frame = cv2.resize(crop_frame,(256,256),interpolation = cv2.INTER_LANCZOS4) cv2.error: OpenCV(4.9.0) /Users/xperience/GHA-OpenCV-Python2/_work/opencv-python/opencv-python/opencv/modules/imgproc/src/resize.cpp:4152: error: (-215:Assertion failed) !ssize.empty() in function 'resize'

alexLIUMinhao commented 1 month ago

Hi,

The error you encountered may occur because the input image "crop_frame" is empty or invalid when attempting to resize it. Please check your input data to ensure that it has been cropped correctly.