GitHunt
HO

hollygrimm/pixelcnn-flickr8k

Training PixelCNN on Flickr8k Images

Training a PixelCNN on Flickr8k images

Regenerate a portion of an image using PixelCNN.

Example Image

Example Image

Dependencies

  1. python 3.5.2
  2. tensorflow 1.4.1
  3. cadl

Dataset

Flickr8k dataset, 8000 images 64x64 pixels

Training

Hyperparameters

The batch size is set to 4 for a 2GB GPU. It should be increased to 32 or greater to leverage the full size of your GPU memory.

Execute training:

python pixelcnn_flickr8k.py

Monitor Training

Execute to view loss chart and audio synthesis:

tensorboard --logdir=.

Synthesizing

Select an image from the dataset, zero out the lower half and use the trained model to synthesize it.

import pixelcnn_flickr8k
pixelcnn_flickr8k.generate()

Author

Languages

Python100.0%

Contributors

Apache License 2.0
Created January 21, 2018
Updated April 12, 2019