Skip to content
Permalink
Browse files

Fix image rescaling to [0,1]

  • Loading branch information...
woctezuma committed Feb 15, 2019
1 parent 77ed721 commit 1a0428a1ec441adbacf9df7cc18a6fccf75b83bc
Showing with 3 additions and 3 deletions.
  1. +1 −1 sgan/sgan.py
  2. +1 −1 wgan/wgan.py
  3. +1 −1 wgan_gp/wgan_gp.py
@@ -175,7 +175,7 @@ def sample_images(self, epoch):
gen_imgs = self.generator.predict(noise)

# Rescale images 0 - 1
gen_imgs = 0.5 * gen_imgs + 1
gen_imgs = 0.5 * gen_imgs + 0.5

fig, axs = plt.subplots(r, c)
cnt = 0
@@ -173,7 +173,7 @@ def sample_images(self, epoch):
gen_imgs = self.generator.predict(noise)

# Rescale images 0 - 1
gen_imgs = 0.5 * gen_imgs + 1
gen_imgs = 0.5 * gen_imgs + 0.5

fig, axs = plt.subplots(r, c)
cnt = 0
@@ -227,7 +227,7 @@ def sample_images(self, epoch):
gen_imgs = self.generator.predict(noise)

# Rescale images 0 - 1
gen_imgs = 0.5 * gen_imgs + 1
gen_imgs = 0.5 * gen_imgs + 0.5

fig, axs = plt.subplots(r, c)
cnt = 0

0 comments on commit 1a0428a

Please sign in to comment.
You can’t perform that action at this time.