antgroup / echomimic

EchoMimic: Lifelike Audio-Driven Portrait Animations through Editable Landmark Conditioning
https://antgroup.github.io/ai/echomimic/
Apache License 2.0
3.01k stars 349 forks source link

webgui.py代码写得有点问题,需要自行修改才能跑起来 #151

Open huanglong123 opened 2 months ago

huanglong123 commented 2 months ago
face_img = crop_and_pad(face_img, crop_rect)
face_mask = crop_and_pad(face_mask, crop_rect)
face_img = cv2.resize(face_img, (width, height))
face_mask = cv2.resize(face_mask, (width, height))

需要修改为

face_img = crop_and_pad(face_img, crop_rect)[0]
face_mask = crop_and_pad(face_mask, crop_rect)[0]
face_img = cv2.resize(face_img, (width, height))
face_mask = cv2.resize(face_mask, (width, height))
JackGit commented 2 months ago

thanks

tanarch10 commented 3 weeks ago

感谢