Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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([[
|
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')
|