Skip to content

Unofficial Pytorch Lightning implementation of "Variational Inference with Normalizing Flows" by [Rezende, et al., 2015]

Notifications You must be signed in to change notification settings

vrvrv/Variational-Inference-with-Normalizing-Flows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Variational Inference with Normalizing Flows

PyTorch Lightning Config: Hydra Template

Installation

git clone https://github.com/vrvrv/Variational-Inference-with-Normalizing-Flows.git
cd Variational-Inference-with-Normalizing-Flows

# pip install -r requirements.txt

Train

You can find configuration files at configs/experiment/. In our code, wandb is the default logger. So, before running code, please sign up wandb.

Training

If you want to control the number of hidden dimension, add model.D=<hidden_dim>.

python train.py experiment=mnist_nfvae model.D=10

Experimental Result

We compared Vanila-VAE and NFVAE on several different settings.

MNIST dataset

We sampled from the model by taking decoder after generating gaussian noise.

VAE

vae_mnist_d10

NFVAE

nfvae_mnist_d10

Model Negative log-likelihood
VAE ~ 110.98
NFVAE (D=10) ~ 109.73

1D Simulation

Coupla Dataset

References

About

Unofficial Pytorch Lightning implementation of "Variational Inference with Normalizing Flows" by [Rezende, et al., 2015]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages