Closed WendyMin closed 4 years ago
The original code is:
# Train Generator g_loss = gan.train_on_batch(z, np.ones((batch_size, 1)))
But the generator generates fake images, so I think the input of gan.train_on_batch is fake=np.zeros((batch_size, 1))
# Train Generator g_loss = gan.train_on_batch(z, np.zeros((batch_size, 1)))
The original code is correct, because during Generator training, we want to fool the Discriminator.
Thanks. You are absolutely right.
The original code is:
But the generator generates fake images, so I think the input of gan.train_on_batch is fake=np.zeros((batch_size, 1))