You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
discriminator_on_generator is a model that combines a generator and discriminator. in other words, discriminator_on_generator is a stacked model that is a binary classifier, capable of distinguishing between fake and real images.
ultimately, it is discriminator_on_generator that trains the generator - the generator is never trained as a standalone model. the relevant bit of code is here:
Since discriminator_on_generator is trains the generator, why do you need to compile the generator? g.compile(loss='binary_crossentropy', optimizer="SGD")
Also in the paper, it seems we need to max one model and minimize the other model, but we don't seem to be doing that here. We seem to be minimizing both loss functions.
In the
def train(BATCH_SIZE):
discriminator_on_generator = \ generator_containing_discriminator(generator, discriminator)
what is
discriminator_on_generator
?Is it a model?The text was updated successfully, but these errors were encountered: