Skip to content

mistylight/Understanding_the_VAE_Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Understanding the VAE Model

Example codes for my blog post: Understanding the VAE Model.

NOTE: The visualizations below are generated using the CNN-based model.

Latent Space

A visualization of the latent space of VAE trained on MNIST, projected to 2-dimension with PCA:

Reconstruction

Input image x (left) and its corresponding VAE reconstruction x-hat (right):

Interpolation

The interpolation between two test images xA, xB. From left to right: xA, xA-hat, the 3 interpolations in between, xB-hat, xB:

Sample and Generate

Novel hand-written digit images generated by VAE:

License

Distributed under the MIT License. See LICENSE for more information.

Contact

@mistylight - [email protected]

Acknowledgements

[1] Tutorial on Variational Autoencoders. Doersch et al., 2016. https://arxiv.org/pdf/1606.05908.pdf

[2] Auto-Encoding Variational Bayes. Kingma et al., 2014. https://arxiv.org/pdf/1312.6114.pdf

[3] Variational inference. Stanford CS228. https://ermongroup.github.io/cs228-notes/inference/variational/

[4] Deriving the KL divergence loss for VAEs. Stack Exchange user user3658307 and Wei Zhong. 2020. https://stats.stackexchange.com/questions/318748/deriving-the-kl-divergence-loss-for-vaes

[5] VAE Approximation Error: ELBO and Exponential Families. Shekhovtsov et al., ICLR 2022. https://openreview.net/forum?id=OIs3SxU5Ynl

[6] Inference Suboptimality in Variational Autoencoders. Cremer et al., ICML 2018. https://arxiv.org/pdf/1801.03558.pdf

[7] Variational autoencoders. Jeremy Jordan, 2018. https://www.jeremyjordan.me/variational-autoencoders/

[8] 【Learning Notes】变分自编码器(Variational Auto-Encoder,VAE). CSDN user MoussaTintin, 2016. https://blog.csdn.net/JackyTintin/article/details/53641885

About

Codes for my blog post "Understanding the VAE Model" https://mistylight.github.io/posts/10593/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published