aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornunzip <np.scarh@gmail.com>2019-03-05 00:51:37 +0000
committernunzip <np.scarh@gmail.com>2019-03-05 00:51:37 +0000
commit2bb025014db2c8d968298125d251cbc4ca5949d1 (patch)
tree4caa082342ce20a5492cf49d40b9e36120ce0ee9
parent8ea26cf68a81df5da1ab7991a36cab91a8b49466 (diff)
downloade4-gan-2bb025014db2c8d968298125d251cbc4ca5949d1.tar.gz
e4-gan-2bb025014db2c8d968298125d251cbc4ca5949d1.tar.bz2
e4-gan-2bb025014db2c8d968298125d251cbc4ca5949d1.zip
Try different normalization
-rw-r--r--dcgan.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/dcgan.py b/dcgan.py
index 1ffe50b..bb19446 100644
--- a/dcgan.py
+++ b/dcgan.py
@@ -143,7 +143,6 @@ class DCGAN():
ref_imgs = X_train[idx]
mu = np.mean(ref_imgs, axis=0)
sigma = np.var(ref_imgs, axis=0)
- sigma[sigma<1] = 1
imgs = np.divide(np.subtract(imgs, mu), sigma)
# Sample noise and generate a batch of new images