vishnun commited on
Commit
fa5fc7a
1 Parent(s): be4d1b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def colorify(pixels):
16
  pixels = (pixels - 127.5) / 127.5
17
  pixels = np.expand_dims(pixels, 0)
18
  gen_image = gen_model.predict(pixels)
19
- gen_image = (gen_image + 1) / 1.8
20
 
21
  return Image.fromarray((gen_image[0] * 255.0).astype(np.uint8))
22
 
 
16
  pixels = (pixels - 127.5) / 127.5
17
  pixels = np.expand_dims(pixels, 0)
18
  gen_image = gen_model.predict(pixels)
19
+ gen_image = (gen_image + 1) / 2
20
 
21
  return Image.fromarray((gen_image[0] * 255.0).astype(np.uint8))
22