diff options
author | Vasil Zlatanov <v@skozl.com> | 2019-03-13 20:11:48 +0000 |
---|---|---|
committer | Vasil Zlatanov <v@skozl.com> | 2019-03-13 20:11:48 +0000 |
commit | 0522b299f1e3771eb4529dbd61bf069338b27318 (patch) | |
tree | f6d72042ea8ca353371069f0888f2e941d4a3e88 | |
parent | c73345e0d2f253faf55fe55280e34ebf801eb82f (diff) | |
download | e4-gan-0522b299f1e3771eb4529dbd61bf069338b27318.tar.gz e4-gan-0522b299f1e3771eb4529dbd61bf069338b27318.tar.bz2 e4-gan-0522b299f1e3771eb4529dbd61bf069338b27318.zip |
Fix cdcgan
-rwxr-xr-x | cdcgan.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -75,9 +75,12 @@ class CDCGAN(): model.add(Activation("relu")) model.add(Conv2DTranspose(64, kernel_size=3, padding="same")) + model.add(BatchNormalization()) + model.add(Activation("relu")) + + model.add(Conv2DTranspose(1, kernel_size=3, padding="same")) model.add(Activation("tanh")) - #model.summary() noise = Input(shape=(self.latent_dim,)) label = Input(shape=(1,), dtype='int32') @@ -85,6 +88,8 @@ class CDCGAN(): model_input = multiply([noise, label_embedding]) img = model(model_input) + #model.summary() + return Model([noise, label], img) def build_discriminator(self): |