Instructions to use google/music-spectrogram-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use google/music-spectrogram-diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("google/music-spectrogram-diffusion", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md (#1)
- Update README.md (e98947a936bedb698999466910f645d07da42d95) - Update README.md (1d9603cc194e6967ce114a960717bceaad4802f9) - Update README.md (6786dbaf90c6beefb2e82683a8818e87e4a114e3) - Update README.md (fd6d2e9fe04af4da16345187cd030cb1646d2b91) - Update README.md (1704e81a225d7ba1c8d03b9f2c748aebfd8fb3d7) Co-authored-by: Kashif Rasul <kashif@users.noreply.huggingface.co>e2e5316
-
Duplicate from kashif/music-spectrogram-diffusion
Co-authored-by: Kashif Rasul <kashif@users.noreply.huggingface.co>b4e09e8