Skip to content

This is a simple Stacked_VAEs written in tensorflow 2.

Notifications You must be signed in to change notification settings

Bao-Jiarong/Stacked_VAEs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stacked_VAEs (Variational Auto Encoder)

Introduction

In the last few years, deep learning based generative models have gained more and more interest due to (and implying) some amazing improvements in the field.

Relying on huge amount of data, well-designed networks architectures and smart training techniques, deep generative models have shown an incredible ability to produce highly realistic pieces of content of various kind, such as images, texts and sounds.

Among these deep generative models, two major families stand out and deserve a special attention: Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs).

In a nutshell, a VAE is an autoencoder whose encodings distribution is regularised during the training in order to ensure that its latent space has good properties allowing us to generate some new data.

Moreover, the term “variational” comes from the close relation there is between the regularisation and the variational inference method in statistics.

The Architecrure of AE(autoencoder)

The Architecrure of VAEs

Training on MNIST

Requirement

python==3.7.0
numpy==1.18.1

How to use

Training & Prediction can be run as follows:
python train.py train
python train.py predict img.png

More information

  • Please refer to the original paper of VAE here for more information.

Result of Stacked_VAEs for MNIST:

  • Learning rate = 1e-4
  • Batch size = 4
  • Optimizer = Adam
  • latent_dim = 200
Epoch Training Loss Validation Loss True image and predicted image
1 0.0239 0.0135
10 0.0084 0.0072
20 0.0037 0.0040

About

This is a simple Stacked_VAEs written in tensorflow 2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages