Practical overview
When it fits
Use it when you want annotated reference implementations and visual comparisons of generative-model methods, especially for MNIST-focused learning or code experiments.
Who it is for
- Learners comparing GAN objectives and training approaches.
- Developers adapting GAN or VAE training code for experiments.
- Readers who want notebook visualizations of generative-model training and VAE latent spaces.
Documented uses
- Compare how GAN variants define generator and discriminator losses.
- Run the included GAN and VAE examples on binary MNIST.
- View training progress, loss plots and VAE latent-space visualizations.
- Use the training structure as a basis for implementing related GAN or VAE variants.
Requirements & limits
The repository is public and MIT-licensed. Its README specifies Python 3.6.5 and PyTorch 0.4.1.
- Examples are documented as unsupervised runs on binary MNIST; the README notes compatibility with other data shapes, but does not describe a general-purpose dataset pipeline.
- The baseline generator and discriminator use simple two-layer feedforward networks; deeper convolutional architectures require edits to the model classes.
- The README points to source files for terminal use and notebooks for local-browser visualizations.
- GPU use is conditional on detection, with CPU as the stated fallback.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up the repository environment
Create the documented Python environment and install the project requirements before choosing a notebook or terminal workflow.
Before you start
- Python 3.6.5, as specified by the README
- The repository and its requirements.txt file
Steps
Create a virtual environment with the command below.
python -m venv envActivate it with
. env/bin/activate.Install dependencies with the command below.
pip install -r requirements.txt
Expected outcome
A virtual environment with the repository requirements installed; the README then identifies notebook and terminal workflows as next steps.
Guide limitations
- The README specifies PyTorch 0.4.1; it does not provide a compatibility guarantee for other software versions.
- This setup recipe does not cover model execution or results.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 11 November 2026
- Original website title
- shayneobrien/generative-models · Official homepage title · retained in its source language

