A local pipeline for generating AI talking-head videos using open-source lip-sync and portrait animation models. Built as part of ongoing FYP research and development into AI-generated video content.
This project sets up and runs open-source AI models that generate synchronized talking-head videos from a face image/video and an audio or driving-video input. It's an early-stage exploration into AI video generation techniques, with the goal of eventually fine-tuning a model for a specific use case as part of a larger AI video content platform.
melspectrogram API change)huggingface-cli to the current hf CLI for model weight downloadshf CLI) for model weight downloadspython -m venv venvvenv\Scripts\activate (Windows)pip install torch==2.5.1+cu121 torchvision==0.20.1+cu121 torchaudio==2.5.1+cu121 --index-url https://download.pytorch.org/whl/cu121
cd Wav2Lippip install librosa opencv-contrib-python opencv-python tqdm numbawav2lip_gan.pth) and place it in Wav2Lip/checkpoints/cd LivePortraitpip install -r requirements.txtpip install -U "huggingface_hub[cli]"hf download KwaiVGI/LivePortrait --local-dir pretrained_weights
python inference.py --checkpoint_path checkpoints/wav2lip_gan.pth --face input_face.mp4 --audio input_audio.wav
Output is saved to results/result_voice.mp4
python inference.py -s assets/examples/source/my_face.jpg -d assets/examples/driving/d13.mp4
-s — source face image (photo or short video)-d — driving video (provides the motion/expressions to transfer onto the source)Output is saved to animations/, including a side-by-side comparison video (*_concat.mp4) and the final result (*.mp4)
This is an early proof-of-concept stage, actively expanding. Completed and planned work:
This project currently uses pretrained, open-source models for initial experimentation and technical proof-of-concept. Fine-tuning and original model/pipeline contributions are planned as the next phase of development, forming the core research contribution of the FYP.
8 commits
Python
91.9%
Cuda
7.3%
A local pipeline for generating AI talking-head videos using open-source lip-sync and portrait animation models. Built as part of ongoing FYP research and development into AI-generated video content.
This project sets up and runs open-source AI models that generate synchronized talking-head videos from a face image/video and an audio or driving-video input. It's an early-stage exploration into AI video generation techniques, with the goal of eventually fine-tuning a model for a specific use case as part of a larger AI video content platform.
melspectrogram API change)huggingface-cli to the current hf CLI for model weight downloadshf CLI) for model weight downloadspython -m venv venvvenv\Scripts\activate (Windows)pip install torch==2.5.1+cu121 torchvision==0.20.1+cu121 torchaudio==2.5.1+cu121 --index-url https://download.pytorch.org/whl/cu121
cd Wav2Lippip install librosa opencv-contrib-python opencv-python tqdm numbawav2lip_gan.pth) and place it in Wav2Lip/checkpoints/cd LivePortraitpip install -r requirements.txtpip install -U "huggingface_hub[cli]"hf download KwaiVGI/LivePortrait --local-dir pretrained_weights
python inference.py --checkpoint_path checkpoints/wav2lip_gan.pth --face input_face.mp4 --audio input_audio.wav
Output is saved to results/result_voice.mp4
python inference.py -s assets/examples/source/my_face.jpg -d assets/examples/driving/d13.mp4
-s — source face image (photo or short video)-d — driving video (provides the motion/expressions to transfer onto the source)Output is saved to animations/, including a side-by-side comparison video (*_concat.mp4) and the final result (*.mp4)
This is an early proof-of-concept stage, actively expanding. Completed and planned work:
This project currently uses pretrained, open-source models for initial experimentation and technical proof-of-concept. Fine-tuning and original model/pipeline contributions are planned as the next phase of development, forming the core research contribution of the FYP.
8 commits
Python
91.9%
Cuda
7.3%