From 2bb025014db2c8d968298125d251cbc4ca5949d1 Mon Sep 17 00:00:00 2001 From: nunzip Date: Tue, 5 Mar 2019 00:51:37 +0000 Subject: Try different normalization --- dcgan.py | 1 - 1 file changed, 1 deletion(-) 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 -- cgit v1.2.3