SpecVQGAN
Transformer that samples spectrogram codebook tokens conditioned on video features to generate sound.
Audio and speech · 2,006 operations Checked
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
- Task
- Audio and speech
- Parameters
- 379.1M
- Operations
- 2,006
- Framework
- PyTorch
- Recurrent
- No
- Published
- BMVC 2021
- Cited by
- 73 (as of 28 October 2026)
- Authors
- Vladimir Iashin, Esa Rahtu
- Source
- GitHub: v-iashin/SpecVQGAN
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20543
- Graph hash
- 6e48b36d6bc00f8fd4565f2448236ffa115bd5401374fd6c80ff0686cf5f9078
- Skeleton hash
- 20b676d92859d2d0efda754a4b691ec7cd53ce01813920c22181efe55c818fc4
- Architecture hash
- 308a469d45ad329b60b3a9f6de3ce788b5c82fceeb2c1d06f9c301e3f4f01c89
- Diagram SHA-256
- 2631bf80d79c39b2bdfab0bbd60d4e32df8af6a6158d5f1f9ecc7ba71edb58ca
- 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
SpecVQGAN is a model for visually guided sound generation: prompted with a set of frames from an open-domain video, it produces visually relevant sound, and the paper reports that generation takes less time than playing the result on a single GPU.
It has two stages. The first is a codebook trained on spectrograms in the manner of VQGAN, with a spectrogram-based perceptual loss. The second is a transformer, a variant of GPT-2, that samples codebook entries one after another as tokens, conditioned on a set of visual features. Those features come from a stack of RGB and optical flow frames. The paper extracts log mel-spectrograms of size 80 × 848 and 212 visual features from clips of about 9.8 seconds. The paper's GPT-2 variant has 24 layers.
The sampled spectrogram still has to become a waveform, and for that the authors train a separate MelGAN on VGGSound because the pretrained MelGAN models target speech or music. For evaluation they built a sound classifier called Melception and metrics based on it to measure the fidelity and relevance of open-domain samples.
Key idea. The paper trains a transformer to sample a new spectrogram from a pre-trained spectrogram codebook given a set of video features.
- SpecVQGAN
- Spectrogram VQGAN
- visually guided sound generation
- Taming Visually Guided Sound Generation
- video-to-audio
- sound generation
- spectrogram codebook
- audio synthesis
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{iashin2021tamingvisuallyguidedsound,
title={Taming Visually Guided Sound Generation},
author={Vladimir Iashin and Esa Rahtu},
year={2021},
eprint={2110.08791},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2110.08791},
}