Skip to content
Xiangyue-ZhangPublic

About

πŸ”₯ [ICCV 2025] SemTalk: Holistic Co-speech Motion Generation with Frame-level Semantic Emphasis

Topics

Resources

Stars

89 stars

Watchers

4 watching

Forks

Latest commit

Β 

History

192 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SemTalk: Holistic Co-speech Motion Generation with Frame-level Semantic Emphasis

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.

SemTalk image

πŸ“£ Updates

  • [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

πŸ’– Inference Data

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/predictions

The 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.

πŸ“Š Results

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.

⚑ Quick Start

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 whisperx

If 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.wav

βš’οΈ Environment

Build Environment

We 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 ffmpeg

Download Data

please 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 Weights

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:

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

Generate Dataset

Notice: Please make sure you are in the root directory, i.e. path-to-SemTalk.

  1. To generate the training dataset, run:
python dataloaders/save_train_dataset.py

This process may take some time, so please be patient.

  1. To generate the test dataset, run:
python dataloaders/save_test_dataset.py

πŸš€Training, Testing, and Inference

Training of SemTalk

The 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.

Train RVQ-VAE

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. Follow scripts/all_speakers/README.md when training or evaluating this protocol.
python train.py --config configs/cnn_vqvae_face_30.yaml --train_rvq # face
python train.py --config configs/cnn_vqvae_hands_30.yaml --train_rvq # hands
python train.py --config configs/cnn_vqvae_upper_30.yaml --train_rvq # upper body
python train.py --config configs/cnn_vqvae_lower_foot_30.yaml --train_rvq # lower foot
python train.py --config configs/cnn_vqvae_lower_30.yaml --train_rvq # lower body

Stage1: Base Motion Generation

python train.py --config configs/semtalk_base.yaml

Notice: Once you have obtained the optimal base motion generation weights, please update the path field to base_ckpt in configs/semtalk_sparse.yaml.

Stage2: Sparse Motion Generation

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 and AGENTS.md.

python train.py --config configs/semtalk_sparse.yaml

Testing of SemTalk

Notice: 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_state

Inference

you 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.wav

Adapting SemTalk to Other Datasets or Tasks (Base-Only Protocol)

If 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.py supervises the semantic gate and weights all Stage 2 sparse reconstruction/classification losses using BEAT2 frame-level semantic labels (sem_mean, derived from sem/*.txt), together with TextGrid/vocab.pkl word 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_base predicts all four body streams (face, upper body, hands, lower body) plus global root motion using only audio (beat onset/amplitude + hubert), masked seed poses (pre_frames=4), and speaker IDs (in_id). It does not require sem_mean, transcripts, or emotion annotations.
  • Recommended workflow:
    1. Train (or adapt) the five motion representation models (cnn_vqvae_{face,hands,upper,lower}_30.yaml and cnn_vqvae_lower_foot_30.yaml) for your target dataset.
    2. Train and evaluate Stage 1 (semtalk_base via semtalk_base_trainer.py / configs/semtalk_base.yaml; resize the speaker embedding in models/semtalk.py::semtalk_base if your dataset has >25 speakers). Run testing and inference directly from the Stage 1 Base checkpoint rather than configs/semtalk_sparse.yaml.
  • 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.

πŸ—‚οΈ Repository Layout

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 configuration
  • dataloaders/: dataset preprocessing and dataset loading
  • models/: RVQ-VAE and SemTalk model definitions
  • train.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.

πŸ“Ί Visualize

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).

πŸ™ Acknowledgments

Thanks to EMAGE, DiffSHEG, our code is partially borrowing from them. Please check these useful repos.

πŸ“– Citation

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}
}

Positioning and Related Work

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.

About

πŸ”₯ [ICCV 2025] SemTalk: Holistic Co-speech Motion Generation with Frame-level Semantic Emphasis

Topics

Resources

Stars

89 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages