Abijith commited on
Commit
7f84e59
1 Parent(s): fdc863a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -114,7 +114,7 @@ def main_func(inputs):
114
 
115
  final_mask = masks[0]
116
  mask_colors = np.zeros((final_mask.shape[0], final_mask.shape[1], 3), dtype=np.uint8)
117
- mask_colors[final_mask, :] = np.array([[128, 0, 0]])
118
  return Image.fromarray((mask_colors+ image_input).astype('uint8'), 'RGB')
119
  else:
120
  print('Prediction:: No vehicle found in the image')
 
114
 
115
  final_mask = masks[0]
116
  mask_colors = np.zeros((final_mask.shape[0], final_mask.shape[1], 3), dtype=np.uint8)
117
+ mask_colors[final_mask, :] = np.array([[256, 0, 0]])
118
  return Image.fromarray((mask_colors+ image_input).astype('uint8'), 'RGB')
119
  else:
120
  print('Prediction:: No vehicle found in the image')