Danh Tran commited on
Commit
c79fafd
·
verified ·
1 Parent(s): fff530f

Update predict_model.py

Browse files
Files changed (1) hide show
  1. 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 cv2.resize((predicted * 255.).astype(int), (width, height))
 
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)