Riffusion – Stable Diffusion fine-tuned to generate music
Other author here! This got a posted a little earlier than we intended so we didn&#x27;t have our GPUs scaled up yet. Please hang on and try throughout the day!<p>Meanwhile, please read our about page  <a href="http:&#x2F;&#x2F;riffusion.com&#x2F;about" rel="nofollow">http:&#x2F;&#x2F;riffusion.com&#x2F;about</a><p>It’s all open source and the code lives at <a href="https:&#x2F;&#x2F;github.com&#x2F;hmartiro&#x2F;riffusion-app" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hmartiro&#x2F;riffusion-app</a> --&gt; if you have a GPU you can run it yourself<p>This has been our hobby project for the past few months. Seeing the incredible results of stable diffusion, we were curious if we could fine tune the model to output spectrograms and then convert to audio clips. The answer to that was a resounding yes, and we became addicted to generating music from text prompts. There are existing works for generating audio or MIDI from text, but none as simple or general as fine tuning the image-based model. Taking it a step further, we made an interactive experience for generating looping audio from text prompts in real time. To do this we built a web app where you type in prompts like a jukebox, and audio clips are generated on the fly. To make the audio loop and transition smoothly, we implemented a pipeline that does img2img conditioning combined with latent space interpolation.