Views
No views yet

| Model | Modality | Compression | Latent channels |
|---|---|---|---|
| KVAE-Image 1.0 | Image | 8 x 8 | 16 |
| KVAE-Video 1.0 | Video | 4 x 8 x 8 | 16 |
pip install -r requirements.txt1import torch
2
3from data import read_image
4from kvae import KVAEImage
5
6device = torch.device("cuda:0")
7dtype = torch.bfloat16
8
9model = KVAEImage.from_pretrained("kandinskylab/KVAE-2D-1.0").eval().to(device=device, dtype=dtype)
10image = read_image("assets/image_test/0002.png").unsqueeze(0)
11image = image.to(device=device, dtype=dtype)
12
13with torch.no_grad():
14 latent = model.encode(image).latent_dist.mode()
15 reconstruction = model.decode(latent).clip(-1, 1)| Dataset | Model | PSNR↑ | SSIM↑ | LPIPS↓ | rFID↓ |
|---|---|---|---|---|---|
| ImageNet-256 (val) | Wan 2.1 | 29.03 | 0.85 | 0.069 | 0.62 |
| ImageNet-256 (val) | FLUX | 31.11 | 0.91 | 0.041 | 0.11 |
| ImageNet-256 (val) | KVAE-Image 1.0 | 31.71 | 0.91 | 0.054 | 0.46 |
| DIV2K | Wan 2.1 | 31.87 | 0.89 | 0.069 | — |
| DIV2K | FLUX | 32.64 | 0.91 | 0.061 | — |
| DIV2K | KVAE-Image 1.0 | 33.67 | 0.92 | 0.060 | — |

DiT + FLUX; green and red are two versions of DiT + KVAE-Image 1.0.
1@misc{kvae_1_2025,
2 author = {Kirill Chernyshev, Andrey Shutkin, Ilia Vasiliev,
3 Denis Parkhomenko, Ivan Kirillov,
4 Dmitrii Mikhailov, Denis Dimitrov},
5 title = {KVAE 1.0: Image and Video Tokenizers for Image and Video Generation Models},
6 howpublished = {\url{https://github.com/kandinskylab/kvae}},
7 year = {2025}
8}