From 8ea26cf68a81df5da1ab7991a36cab91a8b49466 Mon Sep 17 00:00:00 2001 From: nunzip Date: Tue, 5 Mar 2019 00:46:17 +0000 Subject: Fix mistake with variable name --- dcgan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3