Instructions to use linyueqian/stable_audio_random with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use linyueqian/stable_audio_random with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("linyueqian/stable_audio_random", 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
Download vae/config.json from linyueqian/stable_audio_random: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/linyueqian/stable_audio_random/resolve/main/vae/config.json
- Command line
-
hf download hf://linyueqian/stable_audio_random/vae/config.json
-
curl -L -o config.json https://huggingface.co/linyueqian/stable_audio_random/resolve/main/vae/config.json
328 Bytes
| { | |
| "_class_name": "AutoencoderOobleck", | |
| "_diffusers_version": "0.36.0", | |
| "audio_channels": 2, | |
| "channel_multiples": [ | |
| 1, | |
| 2, | |
| 4, | |
| 8 | |
| ], | |
| "decoder_channels": 64, | |
| "decoder_input_channels": 64, | |
| "downsampling_ratios": [ | |
| 2, | |
| 4, | |
| 4, | |
| 8 | |
| ], | |
| "encoder_hidden_size": 64, | |
| "sampling_rate": 44100 | |
| } | |