← all repositories

lucidrains/vector-quantize-pytorch

A PyTorch library providing vector and scalar quantization modules for deep learning, with support for VQ-VAE and residual quantization.

vector-quantize-pytorch
Velocity · 7d
+1.8
★ / day
Trend
steady
star history

This library implements vector and scalar quantization as PyTorch modules, originally transcribed from Deepmind’s TensorFlow implementation. It uses exponential moving averages to update codebook dictionaries and provides both standard VectorQuantize and ResidualVQ classes for recursive quantization of residuals. The library enables high-quality image generation (VQ-VAE-2) and music generation (Jukebox) by compressing latent representations into discrete codebook entries.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.