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

SadTalker

> 编程语言
Open source

[CVPR 2023] SadTalker:Learning Realistic 3D Motion Coefficients for Stylized Audio-Driven Single Image Talking Face Animation

14.0K stars0 likes2 views
WebsiteGitHub

About

[CVPR 2023] SadTalker:Learning Realistic 3D Motion Coefficients for Stylized Audio-Driven Single Image Talking Face Animation



CVPR 2023

TL;DR:       single portrait image 🙎‍♂️      +       audio 🎤       =       talking head video 🎞.


Highlights

  • The license has been updated to Apache 2.0, and we've removed the non-commercial restriction

  • SadTalker has now officially been integrated into Discord, where you can use it for free by sending files. You can also generate high-quailty videos from text prompts. Join:

  • We've published a stable-diffusion-webui extension. Check out more details here. Demo Video

  • Full image mode is now available! More details...

still+enhancer in v0.0.1 still + enhancer in v0.0.2 input image @bagbag1815
  • Several new modes (Still, reference, and resize modes) are now available!

  • We're happy to see more community demos on bilibili, YouTube and X (#sadtalker).

Changelog

The previous changelog can be found here.

  • [2023.06.12]: Added more new features in WebUI extension, see the discussion here.

  • [2023.06.05]: Released a new 512x512px (beta) face model. Fixed some bugs and improve the performance.

  • [2023.04.15]: Added a WebUI Colab notebook by @camenduru:

  • [2023.04.12]: Added a more detailed WebUI installation document and fixed a problem when reinstalling.

  • [2023.04.12]: Fixed the WebUI safe issues becasue of 3rd-party packages, and optimized the output path in sd-webui-extension.

  • [2023.04.08]: In v0.0.2, we added a logo watermark to the generated video to prevent abuse. This watermark has since been removed in a later release.

  • [2023.04.08]: In v0.0.2, we added features for full image animation and a link to download checkpoints from Baidu. We also optimized the enhancer logic.

To-Do

We're tracking new updates in issue #280.

Troubleshooting

If you have any problems, please read our FAQs before opening an issue.

1. Installation.

Community tutorials: 中文Windows教程 (Chinese Windows tutorial) | 日本語コース (Japanese tutorial).

Linux/Unix

  1. Install Anaconda, Python and git.

  2. Creating the env and install the requirements.

bash
git clone https://github.com/OpenTalker/SadTalker.git

cd SadTalker 

conda create -n sadtalker python=3.8

conda activate sadtalker

pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113

conda install ffmpeg

pip install -r requirements.txt

### Coqui TTS is optional for gradio demo. 
### pip install TTS

Windows

A video tutorial in chinese is available here. You can also follow the following instructions:

  1. Install Python 3.8 and check "Add Python to PATH".
  2. Install git manually or using Scoop: scoop install git.
  3. Install ffmpeg, following this tutorial or using scoop: scoop install ffmpeg.
  4. Download the SadTalker repository by running git clone https://github.com/Winfredy/SadTalker.git.
  5. Download the checkpoints and gfpgan models in the downloads section.
  6. Run start.bat from Windows Explorer as normal, non-administrator, user, and a Gradio-powered WebUI demo will be started.

macOS

A tutorial on installing SadTalker on macOS can be found here.

Docker, WSL, etc

Please check out additional tutorials here.

2. Download Models

You can run the following script on Linux/macOS to automatically download all the models:

bash
bash scripts/download_models.sh

We also provide an offline patch (gfpgan/), so no model will be downloaded when generating.

Pre-Trained Models

  • Google Drive
  • GitHub Releases
  • Baidu (百度云盘) (Password: sadt)

GFPGAN Offline Patch

  • Google Drive
  • GitHub Releases
  • Baidu (百度云盘) (Password: sadt)
Model Details

Model explains:

New version
Model Description
checkpoints/mapping_00229-model.pth.tar Pre-trained MappingNet in Sadtalker.
checkpoints/mapping_00109-model.pth.tar Pre-trained MappingNet in Sadtalker.
checkpoints/SadTalker_V0.0.2_256.safetensors packaged sadtalker checkpoints of old version, 256 face render).
checkpoints/SadTalker_V0.0.2_512.safetensors packaged sadtalker checkpoints of old version, 512 face render).
gfpgan/weights Face detection and enhanced models used in facexlib and gfpgan.
Old version
Model Description
checkpoints/auido2exp_00300-model.pth Pre-trained ExpNet in Sadtalker.
checkpoints/auido2pose_00140-model.pth Pre-trained PoseVAE in Sadtalker.
checkpoints/mapping_00229-model.pth.tar Pre-trained MappingNet in Sadtalker.
checkpoints/mapping_00109-model.pth.tar Pre-trained MappingNet in Sadtalker.
checkpoints/facevid2vid_00189-model.pth.tar Pre-trained face-vid2vid model from the reappearance of face-vid2vid.
checkpoints/epoch_20.pth Pre-trained 3DMM extractor in Deep3DFaceReconstruction.
checkpoints/wav2lip.pth Highly accurate lip-sync model in Wav2lip.
checkpoints/shape_predictor_68_face_landmarks.dat Face landmark model used in dilb.
checkpoints/BFM 3DMM library file.
checkpoints/hub Face detection models used in face alignment.
gfpgan/weights Face detection and enhanced models used in facexlib and gfpgan.

The final folder will be shown as:

3. Quick Start

Please read our document on best practices and configuration tips

WebUI Demos

Online Demo: HuggingFace | SDWebUI-Colab | Colab

Local WebUI extension: Please refer to WebUI docs.

Local gradio demo (recommanded): A Gradio instance similar to our Hugging Face demo can be run locally:

bash
## you need manually install TTS(https://github.com/coqui-ai/TTS) via `pip install tts` in advanced.
python app_sadtalker.py

You can also start it more easily:

  • windows: just double click webui.bat, the requirements will be installed automatically.
  • Linux/Mac OS: run bash webui.sh to start the webui.

CLI usage

Animating a portrait image from default config:
bash
python inference.py --driven_audio <audio.wav> \
                    --source_image <video.mp4 or picture.png> \
                    --enhancer gfpgan 

The results will be saved in results/$SOME_TIMESTAMP/*.mp4.

Full body/image Generation:

Using --still to generate a natural full body video. You can add enhancer to improve the quality of the generated video.

bash
python inference.py --driven_audio <audio.wav> \
                    --source_image <video.mp4 or picture.png> \
                    --result_dir <a file to store results> \
                    --still \
                    --preprocess full \
                    --enhancer gfpgan 

More examples and configuration and tips can be founded in the >>> best practice documents <<<.

Citation

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

bibtex
@article{zhang2022sadtalker,
  title={SadTalker: Learning Realistic 3D Motion Coefficients for Stylized Audio-Driven Single Image Talking Face Animation},
  author={Zhang, Wenxuan and Cun, Xiaodong and Wang, Xuan and Zhang, Yong and Shen, Xi and Guo, Yu and Shan, Ying and Wang, Fei},
  journal={arXiv preprint arXiv:2211.12194},
  year={2022}
}

Acknowledgements

Facerender code borrows heavily from zhanglonghao's reproduction of face-vid2vid and PIRender. We thank the authors for sharing their wonderful code. In training process, we also used the model from Deep3DFaceReconstruction and Wav2lip. We thank for their wonderful work.

We also use the following 3rd-party libraries:

  • Face Utils: https://github.com/xinntao/facexlib
  • Face Enhancement: https://github.com/TencentARC/GFPGAN
  • Image/Video Enhancement:https://github.com/xinntao/Real-ESRGAN

Extensions:

  • SadTalker-Video-Lip-Sync from @Zz-ww: SadTalker for Video Lip Editing

Related Works

  • 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)
  • VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editing In the Wild (SIGGRAPH Asia 2022)
  • 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.

…

LOGO: color and font suggestion: [ChatGPT](https://chat.openai.

Issues· 665 open

View all issuesOpen on GitHub
  • #994

    Filterpy installation

    Updated Oct 1, 2026
  • #1038

    为什么上传了图片和音频,生成不了,显示Error EXpecting value:line 1 colimn 1(char0)

    Updated Oct 1, 2026
  • #1023

    [BUG] SadTalker incompatible with PyTorch versions required for NVIDIA RTX 50xx (Blackwell) GPUs – C++ ops failing + keypoint extraction errors

    Updated Sep 3, 2026
  • #1054

    Antalya

    Updated Aug 16, 2026
  • #1053

    Ai video

    Updated Aug 13, 2026
  • #1052

    Ai video

    Updated Aug 13, 2026
  • #1048

    Егорий

    Updated Aug 2, 2026
  • #1043

    OS command injection via uploaded audio filename in the ffmpeg mux (os.system)

    Updated Jun 12, 2026
  • #1029

    On beed knee

    Updated Jun 7, 2026
  • #1039

    Broken Link

    Updated May 24, 2026

> Tags

Pythonaudio-driven-talking-facecvpr2023deep-fakedeep-fakes

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言