Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

lipgan : Generate realistic talking faces for any human speech and face identity.

Input

input.wav

Output

mp4

Usage

Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.

For the sample image,

$ python3 lipgan.py 

If you want to specify the input image, put the image path after the --input option.
If you want to specify the input audio, put the audio path after the --audio option.
You can use --savepath option to change the name of the output file to save.

$ python3 lipgan.py --input IMAGE_PATH --audio AUDIO_PATH --savepath SAVE_VIDEO_PATH 

By adding the --video option, you can input the video.
If you pass 0 as an argument to VIDEO_PATH, you can use the webcam input instead of the video file.

$ python3 lipgan.py --video VIDEO_PATH 

By adding the --use_dlib option, you can use original version of face alignment.

By adding the --merge_audio option, you can merge output video and input audio using ffmpeg.

By adding the --ailia_audio option, you can use ailia audio library for melspectrum conversion.

By adding the --realesrgan option, you can use super resoltuion for geneerated face image.

Reference

Framework

  • Keras
  • tensorflow2onnx

Model Format

ONNX opset=15

Netron

lipgan.onnx.prototxt