How it works...

At each epoch, the generator makes a number of predictions (it creates forged MNIST images) and the discriminator tries to learn how to produce forged images after mixing the prediction with real MNIST images. After 32 epochs, the generator learns to forge this set of handwritten numbers. No one has programmed the machine to write, but it has learned how to write numbers that are indistinguishable from the ones written by humans. Note that training GANs can be very difficult because it is necessary to find the equilibrium between two players. If you are interested in the topic, I'd suggest you have a look at the series of tricks collected by practitioners (https://github.com/soumith/ganhacks).

Let's look at a number of practical examples for different epochs to understand how the machine will learn to improve its writing process:

Epoch 0

Epoch 2

Epoch 4

Epoch 8

Epoch 16

Epoch 32

Epoch 64

Epoch 128

Epoch 200

Example of forged MNIST-like characters with a GAN
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset