Keras-GAN icon indicating copy to clipboard operation
Keras-GAN copied to clipboard

why you use sampled_label for the combined model instead of labels and didn't set "self.discriminator.trainable = True" for training the discriminator?

Open GussailRaat opened this issue 5 years ago • 2 comments

Hello Erik, (1) I just want to understand why you use sampled_label for the combined model instead of labels? g_loss = self.combined.train_on_batch([noise, sampled_labels], valid).

(2) you set "self.discriminator.trainable = False" to train the generator but for training the discriminator why did you not set "self.discriminator.trainable = Ture"?

Thank you.

GussailRaat avatar Aug 23 '19 11:08 GussailRaat

regarding (2), see: https://github.com/eriklindernoren/Keras-GAN/issues/22#issuecomment-379553290

Essentially, it is important that trainable = false is set between discriminator.compile() and combined.compile().

TheGuywithTheHat avatar Oct 04 '19 19:10 TheGuywithTheHat

For which gan you are talking about.

hiteshnitetc avatar Jun 12 '20 14:06 hiteshnitetc