aboutsummaryrefslogtreecommitdiff
path: root/dcgan.py
diff options
context:
space:
mode:
authornunzip <np.scarh@gmail.com>2019-03-07 20:26:04 +0000
committernunzip <np.scarh@gmail.com>2019-03-07 20:26:04 +0000
commit3bd669ae1bddd0dfeda3ced44c9042222bb809a2 (patch)
tree0d391d5eb16d100ceb43d07d2c767506d80b1720 /dcgan.py
parent5c5680085208f941511c9d74447c391124e38f9e (diff)
downloade4-gan-3bd669ae1bddd0dfeda3ced44c9042222bb809a2.tar.gz
e4-gan-3bd669ae1bddd0dfeda3ced44c9042222bb809a2.tar.bz2
e4-gan-3bd669ae1bddd0dfeda3ced44c9042222bb809a2.zip
Fix dropout
Diffstat (limited to 'dcgan.py')
-rw-r--r--dcgan.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dcgan.py b/dcgan.py
index 4ee5917..75b3de3 100644
--- a/dcgan.py
+++ b/dcgan.py
@@ -94,15 +94,15 @@ class DCGAN():
model.add(ZeroPadding2D(padding=((0,1),(0,1))))
model.add(BatchNormalization())
model.add(LeakyReLU(alpha=0.2))
- model.add(Dropout(dropout))
+ model.add(Dropout(self.dropout))
model.add(Conv2D(128, kernel_size=3, strides=2, padding="same"))
model.add(BatchNormalization())
model.add(LeakyReLU(alpha=0.2))
- model.add(Dropout(dropout))
+ model.add(Dropout(self.dropout))
model.add(Conv2D(256, kernel_size=3, strides=1, padding="same"))
model.add(BatchNormalization())
model.add(LeakyReLU(alpha=0.2))
- model.add(Dropout(dropout))
+ model.add(Dropout(self.dropout))
model.add(Flatten())
model.add(Dense(1, activation='sigmoid'))