chansung commited on
Commit
e97a1d6
·
1 Parent(s): 0b5484f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -215,7 +215,7 @@ def sepia(input_img):
215
 
216
  logits = np.transpose(logits, (0, 2, 3, 1))
217
  seg = np.argmax(logits, axis=-1)[0].astype('float32')
218
- seg = cv2.resize(seg, (640, 640))
219
 
220
  color_seg = np.zeros(
221
  (seg.shape[0], seg.shape[1], 3), dtype=np.uint8
 
215
 
216
  logits = np.transpose(logits, (0, 2, 3, 1))
217
  seg = np.argmax(logits, axis=-1)[0].astype('float32')
218
+ seg = cv2.resize(seg, (640, 640)).astype('uint8')
219
 
220
  color_seg = np.zeros(
221
  (seg.shape[0], seg.shape[1], 3), dtype=np.uint8