pkhungurn / talking-head-anime-demo

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

unsupported operand type(s) for -: 'point' and 'point' #22

Closed albbzmkh closed 3 years ago

albbzmkh commented 3 years ago

unsupported operand type(s) for -: 'point' and 'point'

dragonmeteor commented 3 years ago

Can you give me the whole exception text?

DWCTOD commented 3 years ago

I meet the same problem,but it work well in ubuntu 16.04

the error message is

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 "C:\Users\Desktop\talking-head-anime-demo\puppet\util.py", line 15, in compute_left_eye_normalized_ratio min_ratio, max_ratio) File "C:\Users\Desktop\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'

DWCTOD commented 3 years ago

I meet the same problem,but it work well in ubuntu 16.04

the error message is

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 "C:\Users\Desktop\talking-head-anime-demo\puppet\util.py", line 15, in compute_left_eye_normalized_ratio min_ratio, max_ratio) File "C:\Users\Desktop\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'

this is because I was use dlib 19.7, not dlib 19.19. When I change it, that's ok