Riffusion
Stable Diffusion v1.5 fine-tuned to draw spectrogram images that can be turned into music clips.
Audio and speech · 1,682 operations Structure only
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
- 1.1B
- Operations
- 1,682
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2022
- Authors
- Seth Forsgren, Hayk Martiros
- License
- MIT
- Checked
- Structure only: shapes and data types are hypotheses, not measurements.
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
- m19863
- Graph hash
- 818eb54299977979a4d0f7d1a2dcba3a8a1c457aa7957e82fb1a45b6ba24ed7b
- Skeleton hash
- 0549feb2aacc30253e7418c13892b28f13942a6e931a6dbb7ee403de3a7c05b9
- Architecture hash
- fb711ba9cc0db1d0922a38bfb7ed197acb9b8e12b504648af5a1916b82994829
- Diagram SHA-256
- d809af754d691f00a5b7feaa818dfa49109a432cce44c255493485ef9efabc2c
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
What it is
Riffusion makes music with an image generator. It is the v1.5 Stable Diffusion model with no modifications, fine-tuned on images of spectrograms paired with text. The model was created by Seth Forsgren and Hayk Martiros as a hobby project.
In a spectrogram the x-axis is time, the y-axis is frequency and each pixel's color gives the amplitude. The frequency bins use the Mel scale, a perceptual scale of pitch. The generated images hold only amplitudes, not phases, so the audio is reconstructed with the Griffin-Lim algorithm. Because the network is still a text-to-image diffusion model, img2img, inpainting, negative prompts and interpolation work out of the box. To make clips that follow on from each other, the authors generated image-to-image variations of one initial image with different seeds and prompts. They then interpolated between prompts and seeds in the model's latent space for smooth transitions.
The project's code repository now says it is no longer actively maintained.
Key idea. Riffusion showed that Stable Diffusion v1.5, fine-tuned without modification on text-paired spectrogram images, can generate music whose spectrograms are converted to audio downstream.
- riffusion
- riffusion-model-v1
- music generation
- text-to-music
- spectrogram diffusion
- mel spectrogram
- ai music
- riff
- prompt interpolation
- text-to-audio
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{riffusion2022,
title = {Riffusion - Stable diffusion for real-time music generation},
author = {Seth Forsgren and Hayk Martiros},
year = {2022}
}