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

Discriminator loss

The discriminator wants to be able to distinguish between real and generated images. It wants to output 1 for real image and 0 for generated images. The discriminator loss function has the following formula, again simplified because of the way GAN training and labeling works:

This loss function has two terms to it:

  • Binomial cross entropy applied to the discriminator model results in some real data x
  • Binomial cross entropy applied to the discriminator model result for generated data, G(z)

As earlier, we take the negative of these and want to maximize this loss function when training our GAN. When this loss is maximized, ...

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