aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornunzip <np.scarh@gmail.com>2019-03-05 00:46:17 +0000
committernunzip <np.scarh@gmail.com>2019-03-05 00:46:17 +0000
commit8ea26cf68a81df5da1ab7991a36cab91a8b49466 (patch)
tree19eb8d356bfe4e95c79071a1e5f28b01155f6edf
parent21e16309d54fd2a31fdbf7fb470c3d70b38d1c65 (diff)
downloade4-gan-8ea26cf68a81df5da1ab7991a36cab91a8b49466.tar.gz
e4-gan-8ea26cf68a81df5da1ab7991a36cab91a8b49466.tar.bz2
e4-gan-8ea26cf68a81df5da1ab7991a36cab91a8b49466.zip
Fix mistake with variable name
-rw-r--r--dcgan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dcgan.py b/dcgan.py
index 61c0b48..1ffe50b 100644
--- a/dcgan.py
+++ b/dcgan.py
@@ -144,7 +144,7 @@ class DCGAN():
mu = np.mean(ref_imgs, axis=0)
sigma = np.var(ref_imgs, axis=0)
sigma[sigma<1] = 1
- img = np.divide(np.subtract(img, mu), sigma)
+ imgs = np.divide(np.subtract(imgs, mu), sigma)
# Sample noise and generate a batch of new images
noise = np.random.normal(0, 1, (batch_size, self.latent_dim))