Skip to content

Code for UAI 2020 paper "Locally Masked Convolution for Autoregressive Models"

License

Notifications You must be signed in to change notification settings

ajayjain/lmconv

Repository files navigation

PixelCNN++

A Pytorch Implementation of PixelCNN++.

Main work taken from the official implementation

Pre-trained models are available here

I kept the code structure to facilitate comparison with the official code.

The code achieves 2.95 BPD on test set, compared to 2.92 BPD on the official tensorflow implementation.

Running the code

python main.py

Differences with official implementation

  1. No data dependant weight initialization
  2. No exponential moving average of past models for test set evalutation

Contact

For questions / comments / requests, feel free to send me an email.
Happy generative modelling :)

Get CelebAHQ data

cd data
wget https://storage.googleapis.com/glow-demo/data/celeba-tfr.tar
tar -xvzf celeba-tfr.tar

Tensorflow needs to be installed to load the dataset, but the CPU version should be installed, ie pip install tensorflow to prevent TF from using GPU memory.

About

Code for UAI 2020 paper "Locally Masked Convolution for Autoregressive Models"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages