From 06921b135be24ddd2fa2c63162d0393bdc7797be Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Mon, 30 Nov 2020 10:20:22 +0800 Subject: [PATCH] print to logger.info --- tools/infer/predict_det.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/infer/predict_det.py b/tools/infer/predict_det.py index b022bc07..dabce38e 100755 --- a/tools/infer/predict_det.py +++ b/tools/infer/predict_det.py @@ -191,7 +191,8 @@ if __name__ == "__main__": if count > 0: total_time += elapse count += 1 - logger.info("Predict time of %s:" % image_file, elapse) + logger.info("The predicted time of img: {} is {}:".format(image_file, + elapse)) src_im = utility.draw_text_det_res(dt_boxes, image_file) img_name_pure = image_file.split("/")[-1] cv2.imwrite( -- GitLab