← all repositories

rosinality/vq-vae-2-pytorch

PyTorch implementation of VQ-VAE-2, a hierarchical vector quantized variational autoencoder for generating high-fidelity images.

vq-vae-2-pytorch
Velocity · 7d
+0.7
★ / day
Trend
steady
star history

This repository provides a PyTorch implementation of the VQ-VAE-2 generative model. VQ-VAE-2 uses vector quantization in a hierarchical setup with top and bottom levels to compress images into discrete latent codes, followed by a PixelSNAIL autoregressive prior for sampling. The implementation supports distributed training across multiple GPUs and includes code for extracting latent codes into LMDB databases for training the prior model.

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