-
-
Save RaphaelMeudec/15d1dde98739a2a22fd6bb2c4de5d17b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.layers import Input | |
from keras.models import Model | |
def generator_containing_discriminator_multiple_outputs(generator, discriminator): | |
inputs = Input(shape=image_shape) | |
generated_images = generator(inputs) | |
outputs = discriminator(generated_images) | |
model = Model(inputs=inputs, outputs=[generated_images, outputs]) | |
return model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment