Instructions to use kashif/music-spectrogram-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kashif/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("kashif/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
Error running example usage
#1
by ken285 - opened
I got the following error when did as the example usage when I try on both Ubuntu 22.04 python3.9 environment and Kaggle notebook.
'''
NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from /root/.cache/huggingface/hub/models--kashif--music-spectrogram-diffusion/snapshots/3078251db39d827a6e859b7972a29d3553e5fb0a/model.onnx failed:Load model /root/.cache/huggingface/hub/models--kashif--music-spectrogram-diffusion/snapshots/3078251db39d827a6e859b7972a29d3553e5fb0a/model.onnx failed. File doesn't exist
'''
How can I solve it? Thx