How to Build a DCGAN with PyTorch

A Jump-Start GAN Tutorial

Riley Lazarou
Towards Data Science
11 min readJun 26, 2020

--

Image Source: Pixabay

In this tutorial, we’ll be building a simple DCGAN in PyTorch and training it to generate handwritten digits. As part of this tutorial we’ll be discussing the PyTorch DataLoader and how to use it to feed real image data into a PyTorch neural network for training. PyTorch is the focus of this tutorial, so I’ll be assuming you’re familiar with how GANs work.

--

--