All models

TM2D

Generates 3D dance from music and a text instruction using motion tokens and a cross-modal transformer.

Multimodal · 861 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (28 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
124M
Operations
861
Framework
PyTorch
Recurrent
No
Published
ICCV 2023
Cited by
65 (as of 28 October 2026)
Authors
Kehong Gong, Dongze Lian, Heng Chang and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20811
Graph hash
cf3237277eb9ad69b10a5e3d942f067d51d5eb8e58639824babe8de97a3ca53d
Skeleton hash
39bd73121a5b7d1b62182c00ed2fcec62f6ff01dbce1b6fce5287ddf09dd5b26
Architecture hash
8fc3179ee7894fec8219dbcb7a7c1b697ce8a030b495c3c31880455907c95fac
Diagram SHA-256
bc2c6fa23b804c0578a137ef18f3c28667094b055000ee55b9ccfd598da715ca
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

TM2D generates 3D dance movements that follow music and a text instruction at the same time. The paper contrasts this with earlier work that generated dance from a single modality such as music, and its stated goal is richer movement guided by the instructions in the text.

The difficulty the paper names is data: motion paired with both music and text is lacking. Its answer is a 3D human motion VQ-VAE that projects the motions of two datasets into one latent space of quantized vectors, so that motion tokens from datasets with different distributions can be mixed in training. The repository trains this motion discretizer on HumanML3D and AIST++.

A cross-modal transformer then brings the text instruction into motion generation, which the paper says is done without degrading music-conditioned dance generation. The paper also introduces two metrics, Motion Prediction Distance (MPD) and Freezing Score (FS), which measure the coherence of the generated motion and the percentage of it that is frozen.

Key idea. TM2D mixes motion tokens from two differently distributed datasets through one motion VQ-VAE and adds a cross-modal transformer so that dance generation follows both music and text.

  • TM2D
  • music to dance
  • text to dance
  • 3D dance generation
  • music-text dance generation
  • bimodality driven dance generation
  • motion VQ-VAE
  • cross-modal transformer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{gong2023tm2dbimodalitydriven3d,
      title={TM2D: Bimodality Driven 3D Dance Generation via Music-Text Integration}, 
      author={Kehong Gong and Dongze Lian and Heng Chang and Chuan Guo and Zihang Jiang and Xinxin Zuo and Michael Bi Mi and Xinchao Wang},
      year={2023},
      eprint={2304.02419},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2304.02419}, 
}