Skip to content

k-duan/vae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vae

Reproduce the VAE experiment on MNIST. Both encoder and decoder are assumed as Gaussian.

Screenshot 2025-01-16 at 20.57.40.png

Notes:

  1. Reconstruction loss must match the assumed decoder probability distribution.
  2. Use torch.randn() for multivariate unit Gaussian sampling (much faster than torch.distributions.MultivariateNormal())
  3. log(\sigma^2) from both encoder and decoder must be clipped.
  4. Gradient norm clipping is not required as long as the norm isn't exploding.
  5. KL loss is expected to increase in the beginning, but should stabilize and converge to lower values later.

Reference:

  1. The original VAE paper
  2. https://deepgenerativemodels.github.io/notes/vae/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages