Rudrabha / Wav2Lip

This repository contains the codes of "A Lip Sync Expert Is All You Need for Speech to Lip Generation In the Wild", published at ACM Multimedia 2020. For HD commercial model, please try out Sync Labs
https://synclabs.so
10.18k stars 2.19k forks source link

Lipsync_expert.pth #252

Closed Ziad-Mohamedd closed 3 years ago

Ziad-Mohamedd commented 3 years ago

python inference.py --checkpoint_path --face --audio

this line works well with wav2lip.pth and wav2lip_gan.pth which are the pretrained model in the checkpoint path but the pretrained model of the discrimnator which is "lipsync_expert.pth" results in error

image

15458wew commented 3 years ago

The inference stage does not need lip-sync_expert.pth

Ziad-Mohamedd commented 3 years ago

how come ??

ambitionforcomputervision commented 3 years ago

The inference.py script is intended for generating talking head frames. As you can see in figure 2 of the paper it is the Generator that generates talking head frames. There are two pre-trained versions of this Generator wav2lip.pth and wav2lip_gan.pth. In contrast, the Lip Sync Expert generates a sync loss which is used during training to tell the generator if it is doing well. If you are interested in this loss value for a specific video you should not use inference.py which is intended for generating talking head frames and not a specific loss value.

Ziad-Mohamedd commented 3 years ago

The inference.py script is intended for generating talking head frames. As you can see in figure 2 of the paper it is the Generator that generates talking head frames. There are two pre-trained versions of this Generator wav2lip.pth and wav2lip_gan.pth. In contrast, the Lip Sync Expert generates a sync loss which is used during training to tell the generator if it is doing well. If you are interested in this loss value for a specific video you should not use inference.py which is intended for generating talking head frames and not a specific loss value.

thanks so much for your time ,, its much more clear now thank you