Path: blob/master/second_edition/chapter12_part05_gans.ipynb
713 views
Kernel: Python 3
This is a companion notebook for the book Deep Learning with Python, Second Edition. For readability, it only contains runnable code blocks and section titles, and omits everything else in the book: text paragraphs, figures, and pseudocode.
If you want to be able to follow what's going on, I recommend reading the notebook side by side with your copy of the book.
This notebook was generated for TensorFlow 2.6.
Introduction to generative adversarial networks
A schematic GAN implementation
A bag of tricks
Getting our hands on the CelebA dataset
Getting the CelebA data
In [0]:
Creating a dataset from a directory of images
In [0]:
Rescaling the images
In [0]:
Displaying the first image
In [0]:
The discriminator
The GAN discriminator network
In [0]:
In [0]:
The generator
GAN generator network
In [0]:
In [0]:
The adversarial network
The GAN Model
In [0]:
A callback that samples generated images during training
In [0]:
Compiling and training the GAN
In [0]: