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
🤗KVAE-Audio | 🧨Diffusers | KVAE-Audio GitHub | KVAE GitHub | Habr Article | Project Page | Technical Report
KVAE-Audio-Stereo
KVAE-Audio-Stereo is the stereo release of KVAE-Audio. It is a continuous, full-band (48 kHz) audio autoencoder. It compresses raw stereo audio waveforms into compact continuous latents and reconstructs them with high fidelity across speech, music, and general sound. Left and right stay separate waveform channels, and the posterior latent has 128 channels. The model is designed not only for faithful reconstruction, but as a latent space for generative models — in our internal text-to-audio pipeline, swapping the autoencoder for KVAE-Audio-Stereo improves generation quality under a fixed generator.
The mono release is KVAE-Audio.
Both KVAE-Audio and KVAE-Audio-Stereo are available in Hugging Face Diffusers 🤗🧨 as AutoencoderKLKVAEAudio since 0.42.0.
Diffusers
import torch
from diffusers import AutoencoderKLKVAEAudio
vae = AutoencoderKLKVAEAudio.from_pretrained(
"kandinskylab/KVAE-Audio-Stereo",
subfolder="diffusers",
dtype=torch.float32,
)
KVAE
from kvae import KVAEAudio
model = KVAEAudio.from_pretrained("kandinskylab/KVAE-Audio-Stereo")
KVAE-Audio
hf download kandinskylab/KVAE-Audio-Stereo kvae-audio-stereo.pt --local-dir .
Waveforms are (batch, channels, time) at 48 kHz. A stereo file stays left/right. A mono file is duplicated to 2 channels before the model and averaged back to one channel when the written file should stay mono.
Model zoo
Compression is shown as H × W for images and T × H × W for videos. For audio, it is the number of waveform samples per latent timestep; both audio models operate at 48 kHz.
Current models
| Model | Modality | Compression | Latent channels |
|---|---|---|---|
| KVAE-Image 3.0 | Image | 8 × 8 | 32 |
| KVAE-Video 3.0 | Video | 4 × 32 × 32 | 128 |
| KVAE-Audio-Stereo | Stereo audio | 960 | 128 |
- Downloads last month
- 3