antoyo123 commited on
Commit
8ceb7e4
1 Parent(s): 60ac915

Update predict.py

Browse files
Files changed (1) hide show
  1. predict.py +1 -0
predict.py CHANGED
@@ -78,6 +78,7 @@ def main(predict_config: OmegaConf):
78
  cur_res = np.clip(cur_res * 255, 0, 255).astype('uint8')
79
  cur_res = cv2.cvtColor(cur_res, cv2.COLOR_RGB2BGR)
80
  cv2.imwrite(cur_out_fname, cur_res)
 
81
  except KeyboardInterrupt:
82
  LOGGER.warning('Interrupted by user')
83
  except Exception as ex:
 
78
  cur_res = np.clip(cur_res * 255, 0, 255).astype('uint8')
79
  cur_res = cv2.cvtColor(cur_res, cv2.COLOR_RGB2BGR)
80
  cv2.imwrite(cur_out_fname, cur_res)
81
+ print('wrote prediction image to :', cur_out_fname)
82
  except KeyboardInterrupt:
83
  LOGGER.warning('Interrupted by user')
84
  except Exception as ex: