Dongbin Zhang1,2*, Hao Liu2, Binquan Dai1, Kangjie Chen1, Chuming Wang1, Chen Li2†, Jing LYU2, Haoqian Wang1†
1 Tsinghua University | 2 WeChat Vision, Tencent Inc.
* Intern | † Corresponding Authors
We release the complete training code for EMOSH.
EMOSH animates a reference image with expressive motion from a driving video while preserving the reference subject's body shape and identity.
- Expressive motion control. Track and transfer body motion, facial expressions and hand gestures through EHM.
- Motion–shape disentanglement. Retarget driving motion to the reference identity before rendering hybrid mesh and keypoint controls.
- Consistent long videos. Combine reference, temporal and spatially-aligned conditioning across video chunks.
The training implementation initializes the DiT with public Wan2.2-Animate-14B weights. A lightweight control embedding injects VAE-encoded EHM renderings; LoRA adapts the backbone. See the paper for the method and experiments.
Linux · Python 3.10 · NVIDIA CUDA GPU. Follow the minimal installation, then prepare the Wan initialization and EHM assets.
Use EMOSH-Tracker to fit your videos and save input PNGs. List the results in a JSONL manifest, then pack them in parallel:
python prepare_dataset.py --manifest clips.jsonl \
--output data/train --workers 8 --resumeManifest format, single clips and existing datasets
python train.py --dataset data/train --model-path models/wan-base \
--assets assets --output outputs/train --num-frames 77 \
--lora-rank 32 --learning-rate 1e-4 --checkpoint-offloadUse --max-steps for a short run and --resume outputs/train/step-N to continue from a checkpoint. Distributed training, outputs and validation
python infer.py --dataset data/train --reference clip_0001 --driving clip_0002 \
--model-path models/wan-base --assets assets \
--checkpoint outputs/train/step-N/model.safetensors \
--output outputs/animation.mp4 --num-frames 77 --steps 20The reference record supplies identity and shape; the driving record supplies motion and camera. Original dimensions, Wan-Animate area budgets and custom canvases are supported.
EMOSH-Tracker is the standalone tracker for full-body, upper-body and portrait images or videos, including flexible input resolutions. Its repository provides installation, model links and runnable examples. The EMOSH-Tracker/ submodule opens the corresponding source.
Built on Wan, DiffSynth-Studio, EHM-Tracker, SMPL-X, FLAME and MANO. Project-authored integration is under Apache-2.0; embedded components retain their original terms.
@inproceedings{zhang2026emosh,
title={EMOSH: Expressive Motion and Shape Disentanglement for Human Animation},
author={Zhang, Dongbin and Liu, Hao and Dai, Binquan and Chen, Kangjie and Wang, Chuming and Li, Chen and LYU, Jing and Wang, Haoqian},
booktitle={European Conference on Computer Vision (ECCV)},
year={2026}
}