From b37c597d173ac24723df372527af508d03f052aa Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Mon, 28 Jun 2021 09:10:10 +0000 Subject: [PATCH] fix subprocess error --- tools/infer/predict_det.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/infer/predict_det.py b/tools/infer/predict_det.py index bf0735b7..3a9eec43 100755 --- a/tools/infer/predict_det.py +++ b/tools/infer/predict_det.py @@ -31,8 +31,6 @@ from ppocr.utils.utility import get_image_file_list, check_and_read_gif from ppocr.data import create_operators, transform from ppocr.postprocess import build_post_process -# import tools.infer.benchmark_utils as benchmark_utils - logger = get_logger() import auto_log @@ -221,7 +219,6 @@ class TextDetector(object): self.autolog.times.end(stamp=True) et = time.time() - self.autolog.get_avg_mem_mb() return dt_boxes, et - st @@ -238,8 +235,6 @@ if __name__ == "__main__": for i in range(10): res = text_detector(img) - text_detector.autolog.mem_info._start_subprocess() - if not os.path.exists(draw_img_save): os.makedirs(draw_img_save) for image_file in image_file_list: -- GitLab