Closed alexsannikoff closed 5 years ago
I try to set flag aligned=True in:
vid, aud = va(frame, audio_clip, fs=fs, aligned=True)
and get true generated sample:
generated_notaligned
Maybe, do anyone face with troubles in face_alignment?
It seems like the alignment process is not working correctly (possibly due to not having the correct model). That blob you are seeing is what the bad alignment has produced. You should maybe try installing the face alignment library from source (https://github.com/1adrianb/face-alignment) and if this doesn't work then ask a question on the FAN github repo and see what could be causing this issue.
The aligned=True flag will work if the face is aligned (which is the case for the example) but it will fail if you use any image.
I've had similar difficulties. I tried 'aligned' set to both True and False, and I've tried different levels of zoom on multiple faces. I haven't been able to get a good result with anything other than the example image.
Here's an example of an image and the output with and without alignment: https://imgur.com/a/GZVBQXo
This is mentioned in issue #2. Like I said there the models released are from the grid, timit and crema datasets. These datasets will not generalize well to in the wild photos ( they will work for unseen faces from the same datasets) because they have been trained on too few identities (15 for grid 60 for crema).
For in the wild images you need the lrw pretrained model, which has not been released yet. I will post an update once this is available. That having said if you want to try with one of the existing models your best bet is with the crema dataset which has seen more identities during training.
Thanks for the context. Any estimate on when you'll release the lrw pretrained model? Thanks for sharing this great work!
@DinoMan Thanks for the answer, I will try to install library from source.
Install from source work correct!
Hello! I try to run this repo on test data in examples. For this, I run this code:
But get this error:
After I change state_dict in api.py in face_alignment like this:
I can run demo and get this result: generated_aligned.mp4 What can I do wrong?