OpenTalker / video-retalking

[SIGGRAPH Asia 2022] VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editing In the Wild
https://opentalker.github.io/video-retalking/
Apache License 2.0
6.04k stars 896 forks source link

Error on the replicate.com #170

Open DANIEL120321 opened 7 months ago

DANIEL120321 commented 7 months ago

traying the demo on https://replicate.com/cjwbw/video-retalking getting this error every time

Traceback (most recent call last): File "/root/.pyenv/versions/3.11.6/lib/python3.11/site-packages/cog/server/worker.py", line 217, in _predict result = predict(**payload) ^^^^^^^^^^^^^^^^^^ File "/src/predict.py", line 309, in predict pred, _, _ = self.enhancer.process( ^^^^^^^^^^^^^^^^^^^^^^ File "/src/third_part/GPEN/gpen_face_enhancer.py", line 113, in process mask_sharp = cv2.GaussianBlur(mask_sharp, (0,0), sigmaX=1, sigmaY=1, borderType = cv2.BORDER_DEFAULT) ^^^^^^^^^^ UnboundLocalError: cannot access local variable 'mask_sharp' where it is not associated with a value

nikolaigeorgie commented 4 months ago

traying the demo on https://replicate.com/cjwbw/video-retalking getting this error every time

Traceback (most recent call last): File "/root/.pyenv/versions/3.11.6/lib/python3.11/site-packages/cog/server/worker.py", line 217, in _predict result = predict(**payload) ^^^^^^^^^^^^^^^^^^ File "/src/predict.py", line 309, in predict pred, _, _ = self.enhancer.process( ^^^^^^^^^^^^^^^^^^^^^^ File "/src/third_part/GPEN/gpen_face_enhancer.py", line 113, in process mask_sharp = cv2.GaussianBlur(mask_sharp, (0,0), sigmaX=1, sigmaY=1, borderType = cv2.BORDER_DEFAULT) ^^^^^^^^^^ UnboundLocalError: cannot access local variable 'mask_sharp' where it is not associated with a value

duplicate #190