未验证 提交 f8441cff 编写于 作者: D Double_V 提交者: GitHub

Update predict_det.py

上级 4c52e385
...@@ -34,7 +34,6 @@ from ppocr.postprocess import build_post_process ...@@ -34,7 +34,6 @@ from ppocr.postprocess import build_post_process
# import tools.infer.benchmark_utils as benchmark_utils # import tools.infer.benchmark_utils as benchmark_utils
logger = get_logger() logger = get_logger()
import auto_log
class TextDetector(object): class TextDetector(object):
...@@ -102,6 +101,7 @@ class TextDetector(object): ...@@ -102,6 +101,7 @@ class TextDetector(object):
args, 'det', logger) args, 'det', logger)
if args.benchmark: if args.benchmark:
import auto_log
pid = os.getpid() pid = os.getpid()
self.autolog = auto_log.AutoLogger( self.autolog = auto_log.AutoLogger(
model_name="det", model_name="det",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册