Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

video-retalking

> 开发工具
Open source

[SIGGRAPH Asia 2022] VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editing In the Wild

7.3K stars0 likes1 views
WebsiteGitHub

About

[SIGGRAPH Asia 2022] VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editing In the Wild



SIGGRAPH Asia 2022 Conference Track



Pipeline

Results in the Wild (contains audio)

https://user-images.githubusercontent.com/4397546/224310754-665eb2dd-aadc-47dc-b1f9-2029a937b20a.mp4

Environment

bash
git clone https://github.com/vinthony/video-retalking.git
cd video-retalking
conda create -n video_retalking python=3.8
conda activate video_retalking

conda install ffmpeg

# Please follow the instructions from https://pytorch.org/get-started/previous-versions/
# This installation command only works on CUDA 11.1
pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html

pip install -r requirements.txt

Quick Inference

Pretrained Models

Please download our pre-trained models and put them in ./checkpoints.

Inference

bash
python3 inference.py \
  --face examples/face/1.mp4 \
  --audio examples/audio/1.wav \
  --outfile results/1_1.mp4

This script includes data preprocessing steps. You can test any talking face videos without manual alignment. But it is worth noting that DNet cannot handle extreme poses.

You can also control the expression by adding the following parameters:

--exp_img: Pre-defined expression template. The default is "neutral". You can choose "smile" or an image path.

--up_face: You can choose "surprise" or "angry" to modify the expression of upper face with GANimation.

Citation

If you find our work useful in your research, please consider citing:

@misc{cheng2022videoretalking,
        title={VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editing In the Wild}, 
        author={Kun Cheng and Xiaodong Cun and Yong Zhang and Menghan Xia and Fei Yin and Mingrui Zhu and Xuan Wang and Jue Wang and Nannan Wang},
        year={2022},
        eprint={2211.14758},
        archivePrefix={arXiv},
        primaryClass={cs.CV}
  }

Acknowledgement

Thanks to Wav2Lip, PIRenderer, GFP-GAN, GPEN, ganimation_replicate, STIT for sharing their code.

Related Work

  • StyleHEAT: One-Shot High-Resolution Editable Talking Face Generation via Pre-trained StyleGAN (ECCV 2022)
  • CodeTalker: Speech-Driven 3D Facial Animation with Discrete Motion Prior (CVPR 2023)
  • SadTalker: Learning Realistic 3D Motion Coefficients for Stylized Audio-Driven Single Image Talking Face Animation (CVPR 2023)
  • DPE: Disentanglement of Pose and Expression for General Video Portrait Editing (CVPR 2023)
  • 3D GAN Inversion with Facial Symmetry Prior (CVPR 2023)
  • T2M-GPT: Generating Human Motion from Textual Descriptions with Discrete Representations (CVPR 2023)

Disclaimer

This is not an official product of Tencent.

…

All Thanks To Our Contributors

Issues· 215 open

View all issuesOpen on GitHub
  • #287

    视频嘴部为什么有阴影

    Updated Apr 27, 2026
  • #233

    1080p视频嘴部闪动

    Updated Nov 25, 2025
  • #270

    Pixelated Eyes -

    Updated Sep 25, 2025
  • #285

    Error message on colab

    Updated Sep 25, 2025
  • #185

    [ Security issue ] Replicate model uses other people's audio

    Updated Sep 10, 2025
  • #35

    setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5,) + inhomogeneous part.

    Updated Aug 28, 2025
  • #78

    ModuleNotFoundError: No module named 'face3d'

    Updated Jun 23, 2025
  • #263

    vrtc: error: invalid value for --gpu-architecture (-arch)

    Updated May 6, 2025
  • #284

    How to achieve faster video output by lowering the video quality.

    Updated Apr 9, 2025
  • #228

    how to generate video in realtime and restream to RTMP or WebRTC server/app

    Updated Mar 16, 2025

> Tags

Pythonlip-synchronizationsiggraph-asia-2022talking-head-videosvideo-editing

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具