PixelCNN is the official implementation from OpenAI of the autoregressive generative model described in the paper Conditional Image Generation with PixelCNN Decoders. It provides code for training and evaluating PixelCNN models on image datasets, focusing on conditional image modeling where pixels are generated sequentially based on the values of previously generated pixels. The repository demonstrates how to apply masked convolutions to enforce autoregressive dependencies and achieve tractable likelihood-based training. It also includes scripts for reproducing key experimental results from the paper, such as conditional sampling on datasets like CIFAR-10. The project serves as both a research reference and a practical framework for experimenting with autoregressive generative models. Although archived, PixelCNN has influenced a wide range of later work in generative modeling, including advancements in image transformers and diffusion models.

Features

  • Official reference implementation of the PixelCNN model
  • Supports conditional image generation with autoregressive decoding
  • Uses masked convolutions to maintain causal dependencies
  • Training and evaluation scripts for reproducibility
  • Example experiments on standard image datasets like CIFAR-10
  • Provides a foundation for studying likelihood-based generative models

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow PixelCNN

PixelCNN Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PixelCNN!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Artificial Intelligence Software

Registered

2025-10-04