GAN Lab

Train a generative adversarial network in your browser and watch the generator and discriminator learn step by step.

educationLearningdata visualizationsimulationopen source
Platforms
Web
Pricing Free

GAN Lab is an interactive tool for learning and experimenting with generative adversarial networks (GANs). You train GAN models on 2D data distributions and see how the generator and discriminator work inside, much like TensorFlow Playground does for ordinary neural networks.

Draw your own data distribution with the brush or use a pre-trained model, then play, slow down or step through training. Each dot is a 2D sample, with real and fake samples in different colors, grid cells that show how the discriminator classifies them, and pink lines for the gradients that move fake samples. The page also has a model overview graph, loss curves and a short explanation of GANs.

It is free, open source and needs no account. Training runs locally in the browser with TensorFlow.js, and Chrome is recommended. The first load can take a few tens of seconds. It was made by Minsuk Kahng, Fernanda Viégas, Martin Wattenberg and colleagues. The interface is in English.