pkhungurn / talking-head-anime-demo

Demo for the "Talking Head Anime from a Single Image."
MIT License
2k stars 286 forks source link

Puppeteer Runtime Error #14

Closed DearVa closed 4 years ago

DearVa commented 4 years ago

This happened when I try to run "puppeteer.py", my camera worked perfectly and I could see my face was highlighted. However, when I import a image, it stopped working and showed this: Exception in Tkinter callback Traceback (most recent call last): File "D:\Python\Python36\lib\tkinter__init.py", line 1705, in call return self.func(*args) File "D:\Python\Python36\lib\tkinter\init__.py", line 749, in callit func(*args) File "app/puppeteer.py", line 142, in update_image left_eye_normalized_ratio = compute_left_eye_normalized_ratio(face_landmarks, eye_min_ratio, eye_max_ratio) File "F:\Source\Python\talking-head-anime-demo\puppet\util.py", line 15, in compute_left_eye_normalized_ratio min_ratio, max_ratio) File "F:\Source\Python\talking-head-anime-demo\puppet\util.py", line 26, in compute_eye_normalized_ratio left_eye_horiz_diff = face_landmarks.part(eye_horiz_points[0]) - face_landmarks.part(eye_horiz_points[1]) TypeError: unsupported operand type(s) for -: 'point' and 'point' [ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (674) SourceReaderCB::~SourceReaderCB terminating async callback

DearVa commented 4 years ago

I can run "manual_poser.py" perfectly and no exception was thrown.

DearVa commented 4 years ago

I have sloved it, thank you.

callanrocks commented 4 years ago

I have sloved it, thank you.

Can yous share how?