Skip to content

enhuiz/cvae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An implementation of conditional variational encoder (CVAE) based on TorchZQ

This repo partially implements the MNIST experiment in the paper: Learning Structured Output Representation using Deep Conditional Generative Models.

Setup

pip install .

Runs

Baseline

tzq config/baseline.yml train

CVAE

tzq config/cvae.yml train

Quantitative comparisons

All models are trained for 20 epochs with batch size 32 and learning rate 1e-3. CVAE by default is not conditioned on the masked input (i.e. p(y|z) instead of p(y|z, x)).

Method NCLL via Importance Sampling (S = 100)
Baseline 112.382
CVAE (w/ conditioned decoder, w/o baseline) 83.745
CVAE (w/ conditioned decoder) 79.524
CVAE (w/o conditioned prior) 76.024
CVAE 72.255
CVAE (w/o baseline) 70.868
CVAE (w/ jointly trained baseline from the pretrained) 69.352
CVAE (w/ jointly trained baseline from scratch) 67.813
  • Baseline seems not helpful when decoder is not conditioned on the masked image.
  • Conditioning on the decoder harms NCLL.

More details can be found here.

Credits

About

An Implementation of Conditional Variational Encoder (CVAE) based on TorchZQ.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages