Danh Tran commited on
Commit
1e667f9
·
verified ·
1 Parent(s): dadc719

Update predict_model.py

Browse files
Files changed (1) hide show
  1. predict_model.py +1 -1
predict_model.py CHANGED
@@ -13,7 +13,7 @@ def run(in_image):
13
  in_image = in_image.astype('float32') / 255.0
14
  predicted = np.clip(model.predict(in_image.reshape(1,160, 160,3)),0.0,1.0).reshape(160, 160,3)
15
 
16
- cv2.imwrite(f'colored-{im_path}', cv2.resize(predicted * 255., (height, width)))
17
  # plot_inference_images(in_image,predicted)
18
 
19
  return cv2.resize(predicted * 255., (height, width))
 
13
  in_image = in_image.astype('float32') / 255.0
14
  predicted = np.clip(model.predict(in_image.reshape(1,160, 160,3)),0.0,1.0).reshape(160, 160,3)
15
 
16
+ # cv2.imwrite(f'colored-{im_path}', cv2.resize(predicted * 255., (height, width)))
17
  # plot_inference_images(in_image,predicted)
18
 
19
  return cv2.resize(predicted * 255., (height, width))