Spaces:
Build error
Build error
Danh Tran
commited on
Update predict_model.py
Browse files- predict_model.py +2 -2
predict_model.py
CHANGED
|
@@ -16,5 +16,5 @@ def run(in_image):
|
|
| 16 |
|
| 17 |
# cv2.imwrite(f'colored-{im_path}', cv2.resize(predicted * 255., (height, width)))
|
| 18 |
# plot_inference_images(in_image,predicted)
|
| 19 |
-
|
| 20 |
-
return
|
|
|
|
| 16 |
|
| 17 |
# cv2.imwrite(f'colored-{im_path}', cv2.resize(predicted * 255., (height, width)))
|
| 18 |
# plot_inference_images(in_image,predicted)
|
| 19 |
+
out_img = cv2.resize(predicted * 255., (width, height))
|
| 20 |
+
return out_img.astype(int)
|