Xiangyue Zhang*, Jianfang Li*, Jiaxu Zhang, Ziqiang Dang, Jianqiang Ren, Liefeng Bo, Zhigang Tuβ
β¨ICCV 2025β¨
SemTalk learns rhythmic base motion and sparse semantic motion for holistic co-speech gesture generation, then combines them frame by frame.
ICCV 2025 paper Β· Compare on BEAT2 using released predictions Β· Adapt to other datasets (Base-only)
Keywords: co-speech gesture generation, co-speech motion generation, speech-driven motion generation, semantic gestures, BEAT2, and SMPL-X.
- [2026.07.27] π₯ Added the 25-speaker BEAT2 release: all five motion representation models, Base and Sparse checkpoints, test prediction NPZ files, metrics, and a separate training workflow.
- [2025.09.11] π₯ Release: - [β] Inference code - [β] Training code
Choose the protocol used by the method you are comparing. Both releases provide test predictions, so you can run a comparison without training SemTalk.
| BEAT2 protocol | Prediction / GT pairs | Download |
|---|---|---|
| Speaker 2 (ICCV paper, Table 1) | 15 | Predictions and ground truth |
| 25 English speakers (July 2026 checkpoint) | 265 | Predictions and ground truth Β· Drive mirror |
Each paired ZIP includes res_<clip_id>.npz (SemTalk prediction) and gt_<clip_id>.npz (corresponding BEAT2 ground truth) at 30 fps. The clip-matching script lists both paths without extracting the ZIP. Pass another method's res_<clip_id>.npz directory to check for missing, extra or duplicate IDs before comparing.
python scripts/match_beat2_predictions.py SemTalk_speaker2_predictions_and_gt.zip
python scripts/match_beat2_predictions.py SemTalk_all_speakers_results_npz_25spk.zip --compare path/to/other/predictionsThe original Speaker 2 prediction-only ZIP (Drive mirror) contains the same 15 predictions and zero ground-truth files. If you already have both original ZIPs, pass SemTalk_testnpz.zip --ground-truth-archive SemTalk_all_speakers_results_npz_25spk.zip to the script to recover the 15 pairs.
Use the same split, representation and evaluator for both methods. The raw FGD values are 0.4278 for Speaker 2 and 0.3556 for the released 25-speaker checkpoint. The table below reports FGD in units of 10β1.
| Training protocol | Speakers | FGD β (Γ10-1) | BC β (Γ10-1) | DIV β | MSE β (Γ10-8) | LVD β (Γ10-5) |
|---|---|---|---|---|---|---|
| Speaker 2 (paper) | 1 | 4.278 | 7.770 | 12.910 | 6.153 | 6.938 |
| All Speakers (released checkpoint) | 25 | 3.556 | 5.097 | 8.409 | 4.439 | 1.435 |
The Speaker 2 row is copied from Table 1 of the paper. The All-Speaker row
uses the lowest-FGD Sparse checkpoint selected by a coarse 10-epoch search
followed by a local 1-epoch search. Raw metrics and checkpoint metadata are in
results/all_speakers. The two rows use different
training protocols and should not be interpreted as a controlled
single-speaker versus multi-speaker ablation.
The shortest path to a runnable setup is:
conda create -n semtalk python=3.8 -y
conda activate semtalk
conda install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 pytorch-cuda=12.1 -c pytorch -c nvidia
pip install -r requirements.txt
pip install -U whisperxIf your data and weights are already ready, inference becomes:
python train.py --config configs/semtalk_sparse.yaml \
--inference \
--audio_infer_path demo/2_scott_0_1_1_test.wavWe Recommend a python version =3.8 and cuda version >=12.1. Then build environment as follows:
# [Optional] Create a virtual env
conda create -n SemTalk python=3.8
conda activate SemTalk
# pytorch, torchvison
conda install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 pytorch-cuda=12.1 -c pytorch -c nvidia
# Install with pip:
pip install -r requirements.txt
pip install -U whisperx
sudo apt-get update && sudo apt-get install -y ffmpeg # if you don't have ffmpegplease refer to EMAGE and download datasets from BEAT2 for datasets and place the dataset inside the SemTalk folder, i.e. path-to-SemTalk/BEAT2
Download hubert-large-ls960-ft(used for extracting audio features), faster-whisper-large-v3(used for inference) weights and place itside in the SemTalk folder, i.e. path-to-SemTalk/facebook.
If you are in China, you can use hf-mirror for faster and more reliable downloads. The process may take some time, so please be patient.
pip install -U huggingface_hub
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download --resume-download facebook/hubert-large-ls960-ft --local-dir facebook/hubert-large-ls960-ft
huggingface-cli download --resume-download Systran/faster-whisper-large-v3 --local-dir Systran/faster-whisper-large-v3
Choose the weights that match the intended protocol:
- Speaker 2 (paper protocol): download the original pretrained models and weights from Hugging Face (Google Drive mirror).
- All Speakers (25 English BEAT2 speakers): download the all-speaker representation models and weights from Hugging Face (Google Drive mirror). This archive contains all five representation models and the selected Base and Sparse checkpoints.
The Hugging Face archives exclude SMPLX_NEUTRAL_2020.npz. Download SMPL-X
from the official website under its own
license and place it in the path expected by the repository.
Keep the original Speaker 2 archive in its documented locations. Install the All-Speaker archive without overwriting those files:
unzip SemTalk_all_speakers_weights_25spk.zip
cp -R SemTalk_all_speakers_weights/weights/all_speakers ./weights/The All-Speaker files use a separate subdirectory, so the original Speaker 2 paths and default configs remain unchanged.
Finally, these SemTalk folder should be orgnized as follows:
.
βββ BEAT2
βΒ Β βββ beat_english_v2.0.0
βββ configs
βββ dataloaders
βββ datasets (this folder will appear after you generate the datasets)
βΒ Β βββ beat2_cache2
βΒ Β βββ beat2_semtalk_train
βΒ Β βββ semtalk_dataloader.py
βββ facebook
βΒ Β βββ hubert-large-ls960-ft
βββ models
βββ optimizers
βββ src
βββ Systran
βΒ Β βββ faster-whisper-large-v3
βββ utils
βββ weights
βΒ Β βββ pretrained_vq
βΒ Β βββ smplx_models
βΒ Β βββ best_semtalk_base.bin
βΒ Β βββ best_semtalk_sparse.bin
βΒ Β βββ all_speakers
βΒ Β βββ pretrained_vq
βΒ Β βββ best_semtalk_base.bin
βΒ Β βββ best_semtalk_sparse.bin
βββ ae_trainer.py
βββ aelower_trainer.py
βββ aelowerfoot_trainer.py
βββ requirements.txt
βββ semtalk_base_trainer.py
βββ semtalk_sparse_trainer.py
βββ train.py
Notice: Please make sure you are in the root directory, i.e. path-to-SemTalk.
- To generate the training dataset, run:
python dataloaders/save_train_dataset.pyThis process may take some time, so please be patient.
- To generate the test dataset, run:
python dataloaders/save_test_dataset.pyThe commands below preserve the original Speaker 2 protocol. For the separate
25-speaker preprocessing, representation-model training, Base training, Sparse
training, and evaluation commands, see
scripts/all_speakers/README.md.
The commands below reproduce the original Speaker 2 RVQ-VAE protocol. You
can either train the models yourself and place the weights under
path-to-SemTalk/weights, or download the pretrained weights that match your
training protocol:
- Speaker 2 (paper protocol): use the original pretrained weights.
- All Speakers (25 English BEAT2 speakers): use the
all-speaker weights.
The archive contains the five all-speaker representation models under
weights/all_speakers/pretrained_vq, together with the selected Base and Sparse checkpoints. Followscripts/all_speakers/README.mdwhen training or evaluating this protocol.
python train.py --config configs/cnn_vqvae_face_30.yaml --train_rvq # facepython train.py --config configs/cnn_vqvae_hands_30.yaml --train_rvq # handspython train.py --config configs/cnn_vqvae_upper_30.yaml --train_rvq # upper bodypython train.py --config configs/cnn_vqvae_lower_foot_30.yaml --train_rvq # lower footpython train.py --config configs/cnn_vqvae_lower_30.yaml --train_rvq # lower bodypython train.py --config configs/semtalk_base.yamlNotice: Once you have obtained the optimal base motion generation weights, please update the path field to base_ckpt in configs/semtalk_sparse.yaml.
Note (Other Datasets / Tasks without Semantic Labels): Stage 2 requires BEAT2-style frame-level semantic annotations (
sem/*.txt->sem_mean), word alignments (TextGrid+vocab.pkl), and CLIP text/emotion features. If you are adapting or comparing SemTalk on a dataset or task without frame-level semantic labels, skip Stage 2 and train/evaluate Stage 1 (Base Motion Generation) directly -- see Adapting SemTalk to Other Datasets or Tasks andAGENTS.md.
python train.py --config configs/semtalk_sparse.yamlNotice: Before running the test code, make sure the load_ckpt and base_ckpt paths in configs/semtalk_sparse.yaml are set correctly.
python train.py --config configs/semtalk_sparse.yaml --test_stateyou can put your inference wav format aduio on ./demo path, for example, you can run:
python train.py --config configs/semtalk_sparse.yaml --inference --audio_infer_path ./demo/2_scott_0_1_1.wavIf you are comparing against SemTalk on a dataset or task that does not provide frame-level semantic gesture annotations (such as ZeroEGGS, TED, Trinity, or custom speech-to-motion benchmarks), only Stage 1 (Base Motion Generation) is required -- you do not need to run Stage 2 (Sparse Motion Generation):
- Why Stage 2 is omitted without semantic labels:
semtalk_sparse_trainer.pysupervises the semantic gate and weights all Stage 2 sparse reconstruction/classification losses using BEAT2 frame-level semantic labels (sem_mean, derived fromsem/*.txt), together withTextGrid/vocab.pklword alignments and CLIP text/emotion embeddings. Without ground-truth frame-level semantic annotations, Stage 2 cannot be trained natively (and passing placeholder zero labels collapses the gate and sparse losses). - Stage 1 (
Base Motion Generation) is the complete SemTalk pipeline without semantic labels:models/semtalk.py::semtalk_basepredicts all four body streams (face, upper body, hands, lower body) plus global root motion using only audio (beatonset/amplitude +hubert), masked seed poses (pre_frames=4), and speaker IDs (in_id). It does not requiresem_mean, transcripts, or emotion annotations. - Recommended workflow:
- Train (or adapt) the five motion representation models (
cnn_vqvae_{face,hands,upper,lower}_30.yamlandcnn_vqvae_lower_foot_30.yaml) for your target dataset. - Train and evaluate Stage 1 (
semtalk_baseviasemtalk_base_trainer.py/configs/semtalk_base.yaml; resize the speaker embedding inmodels/semtalk.py::semtalk_baseif your dataset has >25 speakers). Run testing and inference directly from the Stage 1 Base checkpoint rather thanconfigs/semtalk_sparse.yaml.
- Train (or adapt) the five motion representation models (
- Usage & Automation: On datasets without frame-level semantic annotations, Stage 1 Base Motion Generation serves directly as the standard SemTalk baseline. Automated coding agents can also follow
AGENTS.md.
If you are opening the codebase for the first time, these folders are the important ones:
AGENTS.md: baseline reproduction and custom-dataset adaptation guide (Stage 1 Base-only vs. Stage 2 Sparse)configs/: experiment and path configurationdataloaders/: dataset preprocessing and dataset loadingmodels/: RVQ-VAE and SemTalk model definitionstrain.py: original training entrypoint
The original research code structure is still preserved.
Common repository paths are now centralized in utils/project_paths.py, so preprocessing, training, and checkpoints use the same path conventions.
This also covers the local HuBERT / faster-whisper directories and shared vocab.pkl lookup, which reduces machine-specific path edits when moving the repo.
Following EMAGE, you can download SMPLX blender addon, and install it in your blender 3.x or 4.x. Click the button Add Animation to visualize the generated smplx file (like xxx.npz).
Thanks to EMAGE, DiffSHEG, our code is partially borrowing from them. Please check these useful repos.
SemTalk was published in ICCV 2025, pp. 13761β13771. The official proceedings DOI is 10.1109/ICCV51701.2025.01277.
@inproceedings{zhang2025semtalk,
title={SemTalk: Holistic Co-speech Motion Generation with Frame-level Semantic Emphasis},
author={Zhang, Xiangyue and Li, Jianfang and Zhang, Jiaxu and Dang, Ziqiang and Ren, Jianqiang and Bo, Liefeng and Tu, Zhigang},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
pages={13761--13771},
doi={10.1109/ICCV51701.2025.01277},
year={2025}
}SemTalk asks when a speech-driven gesture should convey meaning. A learned frame-level score combines rhythm-aligned base motion and sparse semantic motion. GestureLSM, also published at ICCV 2025, models interactions across body regions and uses latent shortcuts for fast flow-matching inference. EMAGE jointly learns gesture generation and masked motion reconstruction. SemGes models semantic coherence and relevance between speech and gesture.
SemConFlow, Table 1 independently compares SemTalk and GestureLSM on 25-speaker BEAT2 and 4-speaker SHOW. Its Figure 4 compares motion for speech cues including self-reference and negation. To use the official SemTalk releases in a new comparison, choose the matching BEAT2 prediction set and record the checkpoint and metric scale. The 25-speaker metrics identify the released Sparse checkpoint.
