aboutsummaryrefslogtreecommitdiff
path: root/dcgan.py
diff options
context:
space:
mode:
Diffstat (limited to 'dcgan.py')
-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