How openai/vdvae works
Very Deep VAEs is a research implementation for training, evaluating, restoring, and sampling deep variational autoencoders on image datasets. The principal workflow selects dataset-specific hyperparameters, loads and preprocesses images, trains the VAE, then evaluates likelihoods or generates samples. The graph preserves the dataset, model, training, and distributed/checkpoint-support stages. Edges follow the README or shown calls/imports; unsampled implementation details are not expanded.
Main entry points: train.py Train and evaluate · train_helpers.py Model and optimizer setup · vae.py VAE encoder and decoder · data.py Image datasets
Components 13
Image data
- Image datasets
data.py - Image preprocessing
data.py
VAE model
- VAE encoder and decoder
vae.py - VAE and image likelihood ops
vae_helpers.py
Training and evaluation
- Training entry point
train.py - Train and evaluate
train.py - Generated image samples
train.py
Runtime support
- Dataset configurations
hps.py - Model and optimizer setup
train_helpers.py - Distributed statistics
utils.py - Checkpoints and restore
train_helpers.py - Saved model files
Other components
- Researcher
Connections 19
- Researcher → Training entry point: starts run
README.md - Training entry point → Dataset configurations: loads options
- Training entry point → Image datasets: loads datasets
train.py - Training entry point → Model and optimizer setup: sets up models
train.py - Image datasets → Image preprocessing: provides examples
data.py - Training entry point → Train and evaluate: runs workflow
train.py - Train and evaluate → Image preprocessing: preprocesses batches
train.py - Train and evaluate → VAE encoder and decoder: trains and evaluates
train.py - Train and evaluate → Distributed statistics: reduces statistics
train.py - Model and optimizer setup → Dataset configurations: parses options
train_helpers.py - Model and optimizer setup → VAE encoder and decoder: constructs models
train_helpers.py - Model and optimizer setup → Distributed statistics: uses MPI helpers
train_helpers.py - VAE encoder and decoder → VAE and image likelihood ops: uses model ops
vae.py - Train and evaluate → Checkpoints and restore: saves checkpoints
train.py - Checkpoints and restore → Saved model files: writes and restores
train_helpers.py - Train and evaluate → Generated image samples: generates visualizations
train.py - VAE encoder and decoder → Generated image samples: samples images
train.py - Researcher → Checkpoints and restore: restores models
README.md - Researcher → Train and evaluate: requests test evaluation
README.md