numz / sd-wav2lip-uhq

Wav2Lip UHQ extension for Automatic1111
Apache License 2.0
1.26k stars 166 forks source link

Stop on frame without visible face #77

Open Stonedge opened 11 months ago

Stonedge commented 11 months ago

Sometime in video subject face go out of view and come back.... currently you have to process those video in 2 part and merge them after...

Having the possibility of keeping those frame untouched would be a great option to add...

currently here how I bypass this limitation:

removing the raise from w2l.py (and ajusting the error message) image

and Adding the following code to wav2lip_uhq.py to not modify a frame than didn't have face on them image

solved the issue...

my fix is a quick and dirty hack, not sure it handle all the case... but up to now it work well for me...

Stonedge

numz commented 11 months ago

Hi, Thanks, I'll take care about this in next update Regards🙂

lkdlcodyl commented 11 months ago

Thank you so much for sharing the insights! It really helped a lot!