提交 729ff65f 编写于 作者: L LDOUBLEV

Merge branch 'autolog' of https://github.com/LDOUBLEV/PaddleOCR into autolog

......@@ -32,7 +32,6 @@ from ppocr.data import create_operators, transform
from ppocr.postprocess import build_post_process
logger = get_logger()
import auto_log
class TextDetector(object):
......@@ -99,10 +98,12 @@ class TextDetector(object):
self.predictor, self.input_tensor, self.output_tensors, self.config = utility.create_predictor(
args, 'det', logger)
if args.benchmark:
import auto_log
pid = os.getpid()
self.autolog = auto_log.AutoLogger(
model_name="det",
model_precision="fp32",
model_precision=args.precision,
batch_size=1,
data_shape="dynamic",
save_path="./output/auto_log.lpg",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册