MCPcopy Index your code
hub / github.com/antgroup/echomimic_v2

github.com/antgroup/echomimic_v2 @main

repository ↗ · DeepWiki ↗ · + Follow
479 symbols 1,500 edges 53 files 82 documented · 17% updated 4mo ago★ 4,60774 open issues
README

EchoMimicV2: Towards Striking, Simplified, and Semi-Body Human Animation

<a href='https://github.com/mengrang' target='_blank'>Rang Meng</a><sup>1</sup>&emsp;
<a href='https://github.com/' target='_blank'>Xingyu Zhang</a>&emsp;
<a href='https://lymhust.github.io/' target='_blank'>Yuming Li</a><sup>2</sup>&emsp;
<a href='https://openreview.net/profile?id=~Chenguang_Ma3' target='_blank'>Chenguang Ma</a><sup>2</sup>

Terminal Technology Department, Alipay, Ant Group.

<sup>1</sup>Core Contributor&emsp;
<sup>2</sup>Corresponding Authors






<a href='https://antgroup.github.io/ai/echomimic_v2/'><img src='https://img.shields.io/badge/Project-Page-blue'></a>
<a href='https://huggingface.co/BadToBest/EchoMimicV2'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20HuggingFace-Model-yellow'></a>

<a href='https://modelscope.cn/models/BadToBest/EchoMimicV2'><img src='https://img.shields.io/badge/ModelScope-Model-purple'></a>

<a href='https://arxiv.org/abs/2411.10061'><img src='https://img.shields.io/badge/Paper-Arxiv-red'></a>
<a href='https://openaccess.thecvf.com/content/CVPR2025/papers/Meng_EchoMimicV2_Towards_Striking_Simplified_and_Semi-Body_Human_Animation_CVPR_2025_paper.pdf'><img src='https://img.shields.io/badge/Paper-CVPR2025-blue'></a>
<a href='https://github.com/antgroup/echomimic_v2/blob/main/assets/halfbody_demo/wechat_group.png'><img src='https://badges.aleen42.com/src/wechat.svg'></a>






<a href='https://github.com/antgroup/echomimic_v2/discussions/53'><img src='https://img.shields.io/badge/English-Common Problems-orange'></a>
<a href='https://github.com/antgroup/echomimic_v2/discussions/40'><img src='https://img.shields.io/badge/中文版-常见问题汇总-orange'></a>

🚀 EchoMimic Series

  • EchoMimicV1: Lifelike Audio-Driven Portrait Animations through Editable Landmark Conditioning. GitHub
  • EchoMimicV2: Towards Striking, Simplified, and Semi-Body Human Animation. GitHub
  • EchoMimicV3: 1.3B Parameters are All You Need for Unified Multi-Modal and Multi-Task Human Animation. GitHub

📣 Updates

  • [2025.08.09] 🔥🔥 We update the EchoMimicV3 and release the code.
  • [2025.02.27] 🔥 EchoMimicV2 is accepted by CVPR 2025.
  • [2025.01.16] 🔥 Please check out the discussions to learn how to start EchoMimicV2.
  • [2025.01.16] 🚀🔥 GradioUI for Accelerated EchoMimicV2 is now available.
  • [2025.01.03] 🚀🔥 One Minute is All You Need to Generate Video. Accelerated EchoMimicV2 are released. The inference speed can be improved by 9x (from ~7mins/120frames to ~50s/120frames on A100 GPU).
  • [2024.12.16] 🔥 RefImg-Pose Alignment Demo is now available, which involves aligning reference image, extracting pose from driving video, and generating video.
  • [2024.11.27] 🔥 Installation tutorial is now available. Thanks AiMotionStudio for the contribution.
  • [2024.11.22] 🔥 GradioUI is now available. Thanks @gluttony-10 for the contribution.
  • [2024.11.22] 🔥 ComfyUI is now available. Thanks @smthemex for the contribution.
  • [2024.11.21] 🔥 We release the EMTD dataset list and processing scripts.
  • [2024.11.21] 🔥 We release our EchoMimicV2 codes and models.
  • [2024.11.15] 🔥 Our paper is in public on arxiv.

🌅 Gallery

Introduction

English Driven Audio

Chinese Driven Audio

⚒️ Automatic Installation

Download the Codes

  git clone https://github.com/antgroup/echomimic_v2
  cd echomimic_v2

Automatic Setup

  • CUDA >= 11.7, Python == 3.10
   sh linux_setup.sh

⚒️ Manual Installation

Download the Codes

  git clone https://github.com/antgroup/echomimic_v2
  cd echomimic_v2

Python Environment Setup

  • Tested System Environment: Centos 7.2/Ubuntu 22.04, Cuda >= 11.7
  • Tested GPUs: A100(80G) / RTX4090D (24G) / V100(16G)
  • Tested Python Version: 3.8 / 3.10 / 3.11

Create conda environment (Recommended):

  conda create -n echomimic python=3.10
  conda activate echomimic

Install packages with pip

  pip install pip -U
  pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 xformers==0.0.28.post3 --index-url https://download.pytorch.org/whl/cu124
  pip install torchao --index-url https://download.pytorch.org/whl/nightly/cu124
  pip install -r requirements.txt
  pip install --no-deps facenet_pytorch==2.6.0

Download ffmpeg-static

Download and decompress ffmpeg-static, then

export FFMPEG_PATH=/path/to/ffmpeg-4.4-amd64-static

Download pretrained weights

git lfs install
git clone https://huggingface.co/BadToBest/EchoMimicV2 pretrained_weights

The pretrained_weights is organized as follows.

./pretrained_weights/
├── denoising_unet.pth
├── reference_unet.pth
├── motion_module.pth
├── pose_encoder.pth
├── sd-vae-ft-mse
│   └── ...
└── audio_processor
    └── tiny.pt

In which denoising_unet.pth / reference_unet.pth / motion_module.pth / pose_encoder.pth are the main checkpoints of EchoMimic. Other models in this hub can be also downloaded from it's original hub, thanks to their brilliant works: - sd-vae-ft-mse - audio_processor(whisper)

Inference on Demo

Run the gradio:

python app.py

Run the python inference script:

python infer.py --config='./configs/prompts/infer.yaml'

Run the python inference script for accelerated version. Make sure to check out the configuration for accelerated inference:

python infer_acc.py --config='./configs/prompts/infer_acc.yaml'

EMTD Dataset

Download dataset:

python ./EMTD_dataset/download.py

Slice dataset:

bash ./EMTD_dataset/slice.sh

Process dataset:

python ./EMTD_dataset/preprocess.py

Make sure to check out the discussions to learn how to start the inference.

📝 Release Plans

Status Milestone ETA
The inference source code of EchoMimicV2 meet everyone on GitHub 21st Nov, 2024
Pretrained models trained on English and Mandarin Chinese on HuggingFace 21st Nov, 2024
Pretrained models trained on English and Mandarin Chinese on ModelScope 21st Nov, 2024
EMTD dataset list and processing scripts 21st Nov, 2024
Jupyter demo with pose and reference image alignmnet 16st Dec, 2024
Accelerated models 3st Jan, 2025
🚀 Online Demo on ModelScope to be released TBD
🚀 Online Demo on HuggingFace to be released TBD

⚖️ Disclaimer

This project is intended for academic research, and we explicitly disclaim any responsibility for user-generated content. Users are solely liable for their actions while using the generative model. The project contributors have no legal affiliation with, nor accountability for, users' behaviors. It is imperative to use the generative model responsibly, adhering to both ethical and legal standards.

🙏🏻 Acknowledgements

We would like to thank the contributors to the MimicMotion and Moore-AnimateAnyone repositories, for their open research and exploration.

We are also grateful to CyberHost and Vlogger for their outstanding work in the area of audio-driven human animation.

If we missed any open-source projects or related articles, we would like to complement the acknowledgement of this specific work immediately.

📒 Citation

If you find our work useful for your research, please consider citing the paper :

``` @article{meng2024echomimicv2, title={EchoMimicV2: Towards Striking, Simplified, and Semi-Body Human Animation}, author={Meng, Rang and Zhang, Xingyu and Li, Yuming and Ma, Chenguang}, journal={arXiv preprint arXiv:2411.10061}, year={2024} } @article{meng2025echomimicv3, title={Echomimicv3: 1

Core symbols most depended-on inside this repo

encode
called by 13
src/models/whisper/whisper/tokenizer.py
torch_dfs
called by 12
src/models/mutual_self_attention.py
device
called by 9
src/models/whisper/whisper/model.py
update
called by 8
src/models/whisper/whisper/decoding.py
decode
called by 7
src/models/whisper/whisper/tokenizer.py
get_alpha
called by 6
src/pipelines/myschedulers.py
run
called by 6
src/models/whisper/whisper/decoding.py
from_pretrained_2d
called by 5
src/models/unet_3d.py

Shape

Method 271
Function 124
Class 84

Languages

Python100%

Modules by API surface

src/models/whisper/whisper/decoding.py52 symbols
src/models/unet_2d_blocks.py33 symbols
src/models/whisper/whisper/model.py31 symbols
src/models/unet_3d_blocks.py25 symbols
src/models/motion_module.py25 symbols
src/models/whisper/whisper/tokenizer.py19 symbols
src/models/whisper/whisper/normalizers/english.py16 symbols
src/utils/util_emo.py15 symbols
src/pipelines/pipeline_echomimicv2.py15 symbols
src/models/unet_2d_condition.py15 symbols
src/models/resnet.py15 symbols
src/pipelines/pipeline_echomimicv2_acc.py14 symbols

Dependencies from manifests, versioned

accelerate1.1.1 · 1×
av13.1.0 · 1×
controlnet-aux0.0.9 · 1×
decord0.6.0 · 1×
diffusers0.31.0 · 1×
einops0.8.0 · 1×
gradio_client1.4.3 · 1×
huggingface_hub0.26.2 · 1×
imageio2.36.0 · 1×
imageio-ffmpeg0.5.1 · 1×
mlflow2.18.0 · 1×
moviepy1.0.3 · 1×

For agents

$ claude mcp add echomimic_v2 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact