Practical overview
When it fits
Use it when you want a local Python/PyTorch code example for image-model training and reconstruction, and can work with the older dependency versions listed in the README.
Who it is for
- Developers studying or adapting compact VQ-VAE and convolutional VAE implementations.
- Researchers and practitioners running image reconstruction experiments on datasets such as MNIST and CIFAR-10.
Documented uses
- Train a VQ-VAE or convolutional VAE on image data.
- Compare test images with their reconstructed outputs.
- Use the implementation as a reference for vector-quantized latent representations.
Requirements & limits
The repository is public and licensed under BSD-3-Clause. The documented workflow runs from the command line and requires a local Python and PyTorch environment.
- The README specifies Python 3.6 and PyTorch 0.4, with additional dependencies in requirements.txt.
- The example command selects CIFAR-10, the VQ-VAE model, a data directory and an epoch count.
- PixelCNN-prior sampling and several proposed CIFAR improvements appear as TODOs, not listed completed features.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install requirements and start the CIFAR-10 example
Set up the repository's documented dependencies and invoke its CIFAR-10 VQ-VAE training example.
Before you start
- Python 3.6; the README says Python 3.5 may also work.
- PyTorch 0.4.
- Additional packages listed in requirements.txt.
Steps
Install the listed dependencies with pip install -r requirements.txt.
Run python3 main.py --dataset=cifar10 --model=vqvae --data-dir=~/.datasets --epochs=3.
Expected outcome
The documented command starts the CIFAR-10 VQ-VAE example; the README presents test-set originals and reconstructions as results.
Guide limitations
- The README documents the invocation but does not specify all output or data-download behavior.
- Its stated Python and PyTorch versions are Python 3.6 and PyTorch 0.4.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 10 November 2026
- Original website title
- nadavbh12/VQ-VAE · Official homepage title · retained in its source language

