Sync Lip in Unity by Wav2Lip.
- Anaconda
- (if you want to excute AR Mask mode) Unity 2019.4
- In Anaconda Prompt, create an environment by:
conda env create -f Server/wav2lip_conda.yml
- After installing Wav2Lip enviornment in Anaconda, activate wav2lip environment in Anaconda Prompt
conda activate wav2lip - Start server with a Wav2Lip checkpoint file
You can also use different checkpoint in Server/Wav2Lip/checkpoints.
python server.py --checkpoint_path Wav2Lip\checkpoints\wav2lip_gan.pth
- Wait for predicting predefine faces.
- Win 10 binary: Download
- To excute audio only mode, excute
LipSyncUnity/Build/Mask.exe. - To excute AR mask mode, open Unity and play this scene:
Scenes/MaskAR. - Choose the microphone you are using, and click
Start Recordbutton. - Change face by clicking the button on the right hand side.