eeskimez / emotalkingface

The code for the paper "Speech Driven Talking Face Generation from a Single Image and an Emotion Condition"
MIT License
165 stars 31 forks source link

Error in Data preparation #5

Open muxiddin19 opened 2 years ago

muxiddin19 commented 2 years ago

When I run the following code: python .\data_prep\prepare_data.py -i \25_fps_video_folder\ -o \output_folder --mode 1 --nw 1 I faced with this problem: TypeError: Can't parse 'center'. Sequence item with index 0 has a wrong type image Can you please give your suggestions to handle it?

eeskimez commented 2 years ago

I'm not sure about this error. Can you check if you have the same versions of the libraries in the "requirements.txt"? This looks like an OpenCV version mismatch issue. Also, please make sure the template image exists, you can try different template images as well. The requirement for the template image is that it should contain a symmetrical face.

Hope this helps!

Best, Emre

sahilg06 commented 2 years ago

Hi @muxiddin19, did you solve the above issue? I am also facing the same issue.

rostekus commented 2 years ago

This worked for me: eyesCenter = (int((leftEyeCenter[0] + rightEyeCenter[0]) // 2), int((leftEyeCenter[1] + rightEyeCenter[1]) // 2))