Instructions to use kandinskylab/KVAE-Audio-Stereo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kandinskylab/KVAE-Audio-Stereo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("kandinskylab/KVAE-Audio-Stereo", 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 diffusers/config.json from kandinskylab/KVAE-Audio-Stereo: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/kandinskylab/KVAE-Audio-Stereo/resolve/main/diffusers/config.json
- Command line
-
hf download hf://kandinskylab/KVAE-Audio-Stereo/diffusers/config.json
-
curl -L -o config.json https://huggingface.co/kandinskylab/KVAE-Audio-Stereo/resolve/main/diffusers/config.json
357 Bytes
| { | |
| "_class_name": "AutoencoderKLKVAEAudio", | |
| "_diffusers_version": "0.42.0", | |
| "attn_num_heads": 8, | |
| "codebook_dim": 128, | |
| "decoder_dim": 1536, | |
| "decoder_rates": [ | |
| 8, | |
| 5, | |
| 4, | |
| 3, | |
| 2 | |
| ], | |
| "encoder_dim": 64, | |
| "encoder_rates": [ | |
| 2, | |
| 3, | |
| 4, | |
| 5, | |
| 8 | |
| ], | |
| "latent_dim": 2048, | |
| "num_channels": 2, | |
| "sample_rate": 48000 | |
| } | |