Skip to Content
Hands-On Convolutional Neural Networks with TensorFlow
book

Hands-On Convolutional Neural Networks with TensorFlow

by Iffat Zafar, Giounona Tzanidou, Richard Burton, Nimesh Patel, Leonardo Araujo
August 2018
Intermediate to advanced
272 pages
7h 2m
English
Packt Publishing
Content preview from Hands-On Convolutional Neural Networks with TensorFlow

GAN loss function

As mentioned earlier, both the discriminator and generator have their own loss functions that depend on the output of each others networks. We can think of the GAN as playing a minimax game between the discriminator and the generator that looks like the following:

Here, D is our discriminator, G is our generator, z is a random vector input to the generator, and x is a real image. Although we have given the combined GAN loss here, it is actually easier to consider the two optimizations separately.

In order to train the GAN, we will alternate gradient step updates between the discriminator and the generator. When updating the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Vision Using Deep Learning: Neural Network Architectures with Python and Keras

Computer Vision Using Deep Learning: Neural Network Architectures with Python and Keras

Vaibhav Verdhan

Publisher Resources

ISBN: 9781789130331Supplemental Content