pytorch-vqvae  by ritheshkumar95

PyTorch implementation for Vector Quantized VAE research paper

created 7 years ago
926 stars

Top 40.3% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This repository provides a PyTorch implementation of Vector Quantized Variational Autoencoders (VQ-VAEs), a generative model for learning discrete representations of data. It's suitable for researchers and practitioners interested in neural representation learning and generative modeling, offering a clear path to reproducing results from a course project.

How It Works

The implementation focuses on the VQ-VAE architecture, which uses a vector quantization layer to learn a discrete latent space. This approach is advantageous for its ability to capture complex data distributions and generate high-quality samples, as demonstrated by its application to image and video datasets. The project also includes a PixelCNN prior trained on the discrete latents for class-conditional generation.

Quick Start & Requirements

  • Install/Run: python vqvae.py --data-folder /tmp/miniimagenet --output-folder models/vqvae
  • Prerequisites: PyTorch, Python 3.x. Tested with MNIST, FashionMNIST, CIFAR10, Mini-ImageNet, and Atari 2600 (Boxing).
  • Links: final_project.pdf

Highlighted Details

  • Custom PyTorch VectorQuantization implementation reportedly speeds up VQ-VAE training by ~3x.
  • Includes code for VQ-VAE reconstructions and class-conditional samples using a PixelCNN prior.
  • Basic tests for vector quantization functions are included.

Maintenance & Community

Authors include Rithesh Kumar, Tristan Deleu, and Evan Racah. No community links or roadmap information are provided in the README.

Licensing & Compatibility

The README does not specify a license. Compatibility for commercial use or closed-source linking is not addressed.

Limitations & Caveats

The project appears to be a course project reproduction, and its current maintenance status or long-term support is unclear. No explicit limitations or known issues are mentioned.

Health Check
Last commit

2 years ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
29 stars in the last 90 days

Explore Similar Projects

Starred by Jiayi Pan Jiayi Pan(Author of SWE-Gym; AI Researcher at UC Berkeley) and Yang Song Yang Song(Professor at Caltech; Research Scientist at OpenAI).

vector-quantize-pytorch by lucidrains

0.4%
3k
PyTorch library for vector quantization techniques
created 5 years ago
updated 1 week ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Jiayi Pan Jiayi Pan(Author of SWE-Gym; AI Researcher at UC Berkeley), and
4 more.

taming-transformers by CompVis

0.1%
6k
Image synthesis research paper using transformers
created 4 years ago
updated 1 year ago
Feedback? Help us improve.