vishnun commited on
Commit
390aa75
1 Parent(s): a28ee3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,9 +15,9 @@ def colorify(pixels):
15
  pixels = (pixels - 127.5) / 127.5
16
  pixels = np.expand_dims(pixels, 0)
17
  gen_image = gen_model.predict(pixels)
18
- #gen_image = (gen_image + 1) / 1.5
19
 
20
- return Image.fromarray((gen_image[0] * 255).astype(np.uint8))
21
 
22
  title = "Colorify"
23
  description = "Recolor your images using this lite version of PIX2PIX GAN"
 
15
  pixels = (pixels - 127.5) / 127.5
16
  pixels = np.expand_dims(pixels, 0)
17
  gen_image = gen_model.predict(pixels)
18
+ gen_image = (gen_image + 1) / 2
19
 
20
+ return Image.fromarray((gen_image[0] * 255.0).astype(np.uint8))
21
 
22
  title = "Colorify"
23
  description = "Recolor your images using this lite version of PIX2PIX GAN"