How it works...

The generator learns how to produce forged images of celebrities and the discriminator learns how to distinguish the forged images from the real ones. Each epoch in the two networks competes to improve and reduce losses. The first five epochs are reported in the following table:

Epoch 0

Epoch 1

Epoch 2

Get TensorFlow 1.x Deep Learning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.