KVAE-3D-3.0 - new causal video tokenizer
1 min read
The KVAE-3D-3.0 model from Kandinsky Lab is a causal variational autoencoder (variational autoencoder — an AI model for compressing data into a compact latent space) for latent diffusion. It encodes RGB video into continuous latent representations (latent vectors) with 128-channel dimensionality, 4x temporal compression, and 32x spatial compression per axis. The architecture combines high spatial compression with V-JEPA feature alignment, which improves downstream generation (generative tasks based on the obtained representations) quality.
Key features
- 32x spatial compression and 4x temporal compression for efficient video stream handling.
- Integration of feature alignment with the V-JEPA model for high-quality training.
- Fully convolutional architecture supporting full-frame inference.
- Built-in channel-wise normalization of latent features.
What you can do
- Encode video sequences into compact latent vectors for training video generation diffusion models.
- Reconstruct video files with high precision (LPIPS metric of 0.161 on the MCL-JCV benchmark).
- Integrate the tokenizer into PyTorch video processing pipelines with bfloat16 support.
Example
import torch
from kvae import KVAEVideo
device = torch.device("cuda:0")
dtype = torch.bfloat16
model = (
KVAEVideo.from_pretrained("kandinskylab/KVAE-3D-3.0", strict=True)
.eval()
.to(device=device, dtype=dtype)
)
with torch.no_grad():
latent = model.encode(video, use_latent_norm=True).latent_dist.mode()
reconstruction = model.decode(latent, use_latent_norm=True).clip(-1, 1)Read more
DetailsParameters: 1.12B
Library: kvae
Metrics (MCL-JCV): PSNR 32.26 dB, SSIM 0.878, LPIPS 0.161
Environment: Python 3.11, PyTorch 2.8.0, CUDA 12.8










Comments