YuanxunLu / LiveSpeechPortraits

Live Speech Portraits: Real-Time Photorealistic Talking-Head Animation (SIGGRAPH Asia 2021)
MIT License
1.2k stars 209 forks source link

build failure #16

Closed Ranganaths closed 2 years ago

Ranganaths commented 2 years ago

This is really an interesting paper.. thanks for the implementation I tried to follow the documentation to see the demo however i am hitting at the following issue, I am using OpenCV 4.5.3 which is latest, kindly please let me know if i am using the right version.. or what might be an resolution for this issue. thank you.. Image2Image translation & Saving results... Image2Image translation inference: 0%| | 0/672 [00:00<?, ?it/s] Traceback (most recent call last): File "./demo.py", line 256, in facedataset.dataset.image_pad) File "/home/ranganaths/Documents/ai-proj/LiveSpeechPortraits/datasets/face_dataset.py", line 280, in get_data_test_mode feature_map = torch.from_numpy(self.get_feature_image(landmarks, (self.opt.loadSize, self.opt.loadSize), shoulder, pad)[np.newaxis, :].astype(np.float32)/255.) File "/home/ranganaths/Documents/ai-proj/LiveSpeechPortraits/datasets/face_dataset.py", line 287, in get_feature_image im_edges = self.draw_face_feature_maps(landmarks, size)
File "/home/ranganaths/Documents/ai-proj/LiveSpeechPortraits/datasets/face_dataset.py", line 317, in draw_face_feature_maps im_edges = cv2.line(im_edges, tuple(keypoints[edge[i]]), tuple(keypoints[edge[i+1]]), 255, 2) cv2.error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function 'line'

Overload resolution failed:

  • Can't parse 'pt1'. Sequence item with index 0 has a wrong type
  • Can't parse 'pt1'. Sequence item with index 0 has a wrong type