The Patchbay_

Riffusion vs MusicGen

Mostly a historical comparison now. Riffusion was the clever proof that image diffusion could make music; MusicGen is what you would actually use.

Riffusion is unmaintained and superseded. Its weights are also CreativeML OpenRAIL-M rather than MIT, despite the repository’s MIT badge. Use it for historical interest; use MusicGen, ACE-Step or Stable Audio Open for real work.

Side by side

Riffusion MusicGen
ApproachDiffuses spectrogram imagesAutoregressive over audio tokens
Audio qualityLow — spectrogram inversion artefactsMuch better
Licence (weights)CreativeML OpenRAIL-MCC-BY-NC 4.0
Melody conditioningNoYes
MaintainedNoLimited
LanguagePythonPython
LicenseMIT (code) · CreativeML OpenRAIL-M (weights)MIT
PlatformsLinux Windows macOS WebmacOS Windows Linux
First released20222023
MaintainedNot actively maintained (last activity 2024)Yes

Where they actually differ

The spectrogram trick was the point

Riffusion fine-tuned Stable Diffusion on spectrogram images and converted the results back to audio. It is a genuinely elegant idea and worth understanding. It also means every output passes through spectrogram inversion, which is where its characteristic smeared quality comes from.

MusicGen models audio directly

Generating EnCodec tokens and decoding them avoids the inversion step entirely, which is most of why it sounds better. It also supports melody conditioning, which Riffusion has no equivalent for.

Both have licensing problems, of different kinds

MusicGen’s weights are CC-BY-NC — non-commercial. Riffusion’s are OpenRAIL-M, which permits commercial use but attaches behavioural restrictions you must pass downstream. Neither is simply "MIT" whatever the repository badge suggests.

Name confusion is worth flagging

The hosted product now called Riffusion is a different, closed commercial service. The open project here is the original riffusion-hobby code.

Which should you choose?

Choose Riffusion when…

Choose MusicGen when…

Riffusion detailsMusicGen detailsAll ML & generative

← All comparisons