July 2019
Intermediate to advanced
512 pages
19h 39m
English
The generator loss is given as
.
It implies the probability of the fake image being classified as a real image. As we calculated binary cross-entropy in the discriminator, we use tf.nn.sigmoid_cross_entropy_with_logits() for calculating the loss in the generator.
Here, the following should be borne in mind:
Logits is D_logits_fake.
Since our loss implies the probability of the fake input image being classified as real, the true label is 1. Because, as we learned, the goal of the generator is to generate the fake image and fool the discriminator to classify the fake image as a real image.
We use tf.ones_like() for setting ...
Read now
Unlock full access