Quantized GAN for Complex Music Generation from Dance Videos

Ye Zhu, Kyle Olszewski, Yu Wu, Panos Achlioptas, Menglei Chai, Yan Yan, Sergey Tulyakov

Abstract

Generating synchronized music from video sequences is a complex multimodal task that requires capturing both rhythmic timing and stylistic texture. Traditional approaches often rely on symbolic MIDI representations, which are limited in their ability to produce multi-instrumental, high-fidelity audio. We present Dance2Music-GAN (D2M-GAN), a novel framework that generates complex music directly from dance videos using Vector Quantized (VQ) audio representations. By employing a hierarchical GAN architecture and a multi-scale discriminator, D2M-GAN effectively fuses visual context and human motion to produce audio that is both rhythmically synchronized and stylistically diverse. Our results on the AIST++ benchmark and a newly curated TikTok dataset demonstrate that D2M-GAN significantly outperforms existing state-of-the-art methods in genre accuracy and rhythmic consistency.

Introduction

Generating music from video is a "high-dimensional" challenge; for instance, a single minute of CD-quality audio contains over 2.5 million data points. To manage this complexity, previous research has frequently turned to symbolic representations like MIDI. While MIDI is computationally efficient, it is inherently limited, typically producing mono-instrumental sounds (such as a single piano track) and requiring pre-defined synthesizers.

Real-world dance is rarely performed to a single MIDI track; it involves complex, layered, and multi-instrumental music. Furthermore, existing models often struggle with "in-the-wild" footage where backgrounds are cluttered and body movements may be partially occluded. D2M-GAN bridges this gap by generating "free-form" complex music that captures the rich textures of genres like pop and hip-hop while maintaining a tight temporal link to the dancer's movements.

Methodology

The D2M-GAN architecture is built on a hierarchical Generative Adversarial Network (GAN) framework that processes two primary inputs: visual frames (providing context) and human body motion (providing rhythm).

VQ Audio Representation

Instead of raw waveforms or MIDI, D2M-GAN utilizes Vector Quantized (VQ) representations. This can be conceptualized as a "vocabulary" of complex sound chunks, allowing the model to generate rich, multi-instrumental audio without the rigidity of MIDI. The final audio is synthesized by passing the predicted VQ codes through a fine-tuned decoder from JukeBox, a powerful pre-trained generative model for music.

Hierarchical Structure and Discriminator

The generator uses an I3D network to extract visual features and a motion encoder for body keypoints (SMPL or 2D). These are fused and passed to a VQ generator that predicts the sequence of discrete audio codes. The authors implement two levels of generation:

  • High-level: Designed for faster inference with larger hop-lengths.
  • Low-level: Designed for higher fidelity with smaller hop-lengths.

To ensure the music remains coherent over time, a multi-scale discriminator analyzes the audio at multiple resolutions. It utilizes "window-based" objectives to verify that small chunks of the generated music make sense both locally and globally.

Datasets

The researchers evaluated their model on two primary datasets:

  1. AIST++: A standard benchmark featuring professional dancers in clean studio environments with 3D motion annotations.
  2. TikTok Dance-Music Dataset: A new, more challenging dataset curated for this study, consisting of 445 "in-the-wild" TikTok videos. These videos include diverse backgrounds, multiple performers, and occlusions, providing a realistic test for real-world applications.

Key Insights and Results

The Importance of Motion

Ablation studies revealed that motion data has a significantly higher impact on musical rhythm than raw visual frames. Removing motion data caused the "Beats Hit" score to drop significantly, confirming that the model treats human movement as its primary metronome.

Technical Stability

A critical technical detail involved the scaling factor ((\sigma)). The authors found that scaling the generator's output by a factor of 100 was necessary to match the data range of the pre-trained JukeBox codebooks, which was essential for stable training.

Performance Metrics

D2M-GAN outperformed existing state-of-the-art methods, such as Foley Music and the Controllable Music Transformer (CMT), across several metrics:

  • Rhythm Consistency: On the AIST++ dataset, the Low-level model achieved a 92.3% Beats Coverage and 91.7% Beats Hit score, significantly higher than MIDI-based baselines.
  • Genre Accuracy: D2M-GAN achieved a genre accuracy of 26.7%, more than double that of CMT (11.6%), proving its superior ability to capture complex musical styles.
  • Qualitative Quality: In Mean Opinion Score (MOS) tests, human evaluators rated D2M-GAN's music as more coherent and higher quality than samples from other cross-modality models.

Limitations and Future Work

Despite these results, two main hurdles remain. First, the use of the JukeBox decoder is computationally expensive, making real-time generation a challenge. Second, there is a clear trade-off between quality and speed; increasing the "hop length" to improve performance introduces noise and reduces audio fidelity.

Future directions include exploring ways to combine the flexibility of VQ representations with the explicit control of MIDI, potentially allowing users to "conduct" specific instruments through their dance moves.

Summary updated

BibTeX
@inproceedings{zhu2022quantized,
  author = {Ye Zhu and Kyle Olszewski and Yu Wu and Panos Achlioptas and Menglei Chai and Yan Yan and Sergey Tulyakov},
  title = {{Quantized GAN for Complex Music Generation from Dance Videos}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19836-6\_11},
}
Figure