Instructions to use kandinskylab/KVAE-Audio with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kandinskylab/KVAE-Audio 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", 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
Add diffusers support
Browse files
diffusers/config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "AutoencoderKLKVAEAudio",
|
| 3 |
+
"_diffusers_version": "0.40.0.dev0",
|
| 4 |
+
"attn_num_heads": 8,
|
| 5 |
+
"codebook_dim": 64,
|
| 6 |
+
"decoder_dim": 1536,
|
| 7 |
+
"decoder_rates": [
|
| 8 |
+
8,
|
| 9 |
+
5,
|
| 10 |
+
4,
|
| 11 |
+
3,
|
| 12 |
+
2
|
| 13 |
+
],
|
| 14 |
+
"encoder_dim": 64,
|
| 15 |
+
"encoder_rates": [
|
| 16 |
+
2,
|
| 17 |
+
3,
|
| 18 |
+
4,
|
| 19 |
+
5,
|
| 20 |
+
8
|
| 21 |
+
],
|
| 22 |
+
"latent_dim": 2048,
|
| 23 |
+
"num_channels": 1,
|
| 24 |
+
"sample_rate": 48000,
|
| 25 |
+
"use_attn": true
|
| 26 |
+
}
|
diffusers/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2dc12c08822cf0a76c9108c4cbdd312c9ec76294c425850fb7d94afc46abeeb9
|
| 3 |
+
size 667518376
|