diff --git a/tools/infer/predict_det.py b/tools/infer/predict_det.py index 5c6d6d4233fa4b4b465a154a47f44c995933a37b..c6bdbf5c1cec6122181a3d7e34279b38a55d4789 100755 --- a/tools/infer/predict_det.py +++ b/tools/infer/predict_det.py @@ -34,7 +34,6 @@ from ppocr.postprocess import build_post_process # import tools.infer.benchmark_utils as benchmark_utils logger = get_logger() -import auto_log class TextDetector(object): @@ -102,6 +101,7 @@ class TextDetector(object): args, 'det', logger) if args.benchmark: + import auto_log pid = os.getpid() self.autolog = auto_log.AutoLogger( model_name="det",