Fix image rescaling to [0,1]
This commit is contained in:
Родитель
77ed7218bb
Коммит
1a0428a1ec
|
@ -175,7 +175,7 @@ class SGAN:
|
|||
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 @@ class WGAN():
|
|||
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 @@ class WGANGP():
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче