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.7k stars 984 forks source link

Error in the fifth step of the program: (GPEN) #20

Open labels168 opened 1 year ago

labels168 commented 1 year ago

Traceback (most recent call last): File "inference.py", line 342, in main() File "inference.py", line 198, in main pred, , = enhancer.process(img, img, face_enhance=True, possion_blending=False) File "C:\AI-3\third_part\GPEN\gpen_face_enhancer.py", line 116, in process mask_sharp = cv2.GaussianBlur(mask_sharp, (0,0), sigmaX=1, sigmaY=1, borderType = cv2.BORDER_DEFAULT) UnboundLocalError: local variable 'mask_sharp' referenced before assignment

Looking for any help and answers, thank you teachers and designers.

kunncheng commented 1 year ago

Its' similar to this issue.

Hope this helps~

labels168 commented 1 year ago

它與this issue類似。

希望這有幫助~

Ok, thanks for the guide!