chansung commited on
Commit
23dce4e
·
1 Parent(s): b75eac0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -208,6 +208,7 @@ def draw_plot(pred_img, seg):
208
  def sepia(input_img):
209
  img = Image.fromarray(input_img)
210
  img_batch = np.expand_dims(img, axis=0)
 
211
 
212
  outputs = sess.run(None, {"pixel_values": input_img})[0]
213
  logits = outputs.logits
 
208
  def sepia(input_img):
209
  img = Image.fromarray(input_img)
210
  img_batch = np.expand_dims(img, axis=0)
211
+ img_batch = img_batch.astype(float)
212
 
213
  outputs = sess.run(None, {"pixel_values": input_img})[0]
214
  logits = outputs.logits