Reader small image

You're reading from  Generative Adversarial Networks Cookbook

Product typeBook
Published inDec 2018
PublisherPackt
ISBN-139781789139907
Edition1st Edition
Right arrow
Author (1)
Josh Kalin
Josh Kalin
author image
Josh Kalin

Josh Kalin is a Physicist and Technologist focused on the intersection of robotics and machine learning. Josh works on advanced sensors, industrial robotics, machine learning, and automated vehicle research projects. Josh holds degrees in Physics, Mechanical Engineering, and Computer Science. In his free time, he enjoys working on cars (has owned 36 vehicles and counting), building computers, and learning new techniques in robotics and machine learning (like writing this book).
Read more about Josh Kalin

Right arrow

Explaining your second GAN component – generator


The generator is the fun part of this structure. The generator is going to take inputs from the latent space (a sample from a normal distribution in this recipe) and produce realistic looking data. The generator will also be added to the adversarial part of the training. The GAN will take in latent examples with labels and train on that until the generator itself is able to produce realistic looking images. We'll see some examples of the generated images in the near future.

Getting ready

As with the discriminator development, the important part of this recipe is that you have the appropriate folder structure and the discriminator.py file. Testing each of these components will come once we develop all three of the pieces, and will come once we get to the training script later in this chapter.

How to do it...

This class is broken down into a few sections in order to better divide up the information—imports, generator initialization, model definition...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Generative Adversarial Networks Cookbook
Published in: Dec 2018Publisher: PacktISBN-13: 9781789139907

Author (1)

author image
Josh Kalin

Josh Kalin is a Physicist and Technologist focused on the intersection of robotics and machine learning. Josh works on advanced sensors, industrial robotics, machine learning, and automated vehicle research projects. Josh holds degrees in Physics, Mechanical Engineering, and Computer Science. In his free time, he enjoys working on cars (has owned 36 vehicles and counting), building computers, and learning new techniques in robotics and machine learning (like writing this book).
Read more about Josh Kalin