Skip to content

riteshrm/vae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

minimal-vae

Minimal PyTorch implementation of a Variational Autoencoder (VAE) trained on MNIST.

Features

  • Minimal and readable implementation
  • Reparameterization trick
  • KL divergence loss
  • MNIST training and sampling
  • Pure PyTorch implementation
  • Educational focus

Repository Structure

minimal-vae/
├── vae.py
├── main.py
└── README.md

Theory and Derivations

Detailed explanations and mathematical derivations are available in the accompanying blog post:

The blog covers:

  • Variational Inference
  • ELBO derivation
  • Reparameterization trick
  • KL divergence
  • Latent space sampling
  • VAE training objective

Notes

This repository is intentionally minimal and focuses on understanding Variational Autoencoders rather than large-scale training or state-of-the-art results.

About

Minimal PyTorch implementations of Variational Autoencoders.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages