Skip to content

Pytorch implementation of the image transformer for unconditional image generation

Notifications You must be signed in to change notification settings

sahajgarg/image_transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Transformer (pytorch)

A Pytorch implementation of the Image Transformer. Code adapted from the official implementation in the tensor2tensor library.

Currently supports unconditional image generation for CIFAR10, where the distribution for a pixel can either be categorical or discretized mixture of logistics (as in PixelCNN++). Supports block-wise attention using Local 1D blocks, which perform the best in evaluations on CIFAR10.

Pull requests are welcome for supporting Local 2D blocked attention, image to image superresolution, or class conditional generation!

Running the code

Install the requirements with pip install -r requirements.txt. Then, run the code, with the optional sample flag to generate samples during train time.

python3 train_transformer.py --doc run_name --config transformer_cat.yml --sample

About

Pytorch implementation of the image transformer for unconditional image generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages