Instructions to use stabilityai/stable-audio-open-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Stable Audio Tools
How to use stabilityai/stable-audio-open-1.0 with Stable Audio Tools:
import torch import torchaudio from einops import rearrange from stable_audio_tools import get_pretrained_model from stable_audio_tools.inference.generation import generate_diffusion_cond device = "cuda" if torch.cuda.is_available() else "cpu" # Download model model, model_config = get_pretrained_model("stabilityai/stable-audio-open-1.0") sample_rate = model_config["sample_rate"] sample_size = model_config["sample_size"] model = model.to(device) # Set up text and timing conditioning conditioning = [{ "prompt": "128 BPM tech house drum loop", }] # Generate stereo audio output = generate_diffusion_cond( model, conditioning=conditioning, sample_size=sample_size, device=device ) # Rearrange audio batch to a single sequence output = rearrange(output, "b d n -> d (b n)") # Peak normalize, clip, convert to int16, and save to file output = output.to(torch.float32).div(torch.max(torch.abs(output))).clamp(-1, 1).mul(32767).to(torch.int16).cpu() torchaudio.save("output.wav", output, sample_rate) - Notebooks
- Google Colab
- Kaggle
Where is Stable Audio 2.0 ? Why keep it or hide it ? Share it !
People need your true breakthrough model 'Stable Audio 2.0', why hide it or keep it ? Share it !
Stable Audio Open 1.0 is the same architecture as Stable Audio 2.0, except with a T5 text encoder instead of CLAP, and trained on a different dataset. The models trained on AudioSparx data (Stable Audio 1.0, 1.1, and 2.0) will not have open weights releases due to the data agreement with AudioSparx.
Thank you Fauno15 for your detailed reply. I really hope that Stability AI will continue to serve its mission, releasing open weights, and so that investors will continue funding your hard and highly valuable work, for us and for humanity. Keep the good work !!!
aren't they training a different version with non audiosparx data?