From ea6619284fab1d9d94b95bfe8471d114bf35a8fb Mon Sep 17 00:00:00 2001 From: Dai7Igarashi <40178733+Dai7Igarashi@users.noreply.github.com> Date: Sat, 20 Jul 2019 12:31:04 +0900 Subject: [PATCH] mod: generate images correctly --- progressive/updater.py | 1 + 1 file changed, 1 insertion(+) diff --git a/progressive/updater.py b/progressive/updater.py index de86082..7d4261f 100644 --- a/progressive/updater.py +++ b/progressive/updater.py @@ -33,6 +33,7 @@ def update_core(self): x = [] for j in range(batchsize): x.append(np.asarray(batch[j]).astype("f")) + x = (x - 127.5) / 127.5 x_real = Variable(xp.asarray(x)) self.stage = self.counter / self.stage_interval