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

Update predict_det.py

上级 ea60a034
...@@ -101,10 +101,11 @@ class TextDetector(object): ...@@ -101,10 +101,11 @@ class TextDetector(object):
self.predictor, self.input_tensor, self.output_tensors, self.config = utility.create_predictor( self.predictor, self.input_tensor, self.output_tensors, self.config = utility.create_predictor(
args, 'det', logger) args, 'det', logger)
if args.benchmark:
pid = os.getpid() pid = os.getpid()
self.autolog = auto_log.AutoLogger( self.autolog = auto_log.AutoLogger(
model_name="det", model_name="det",
model_precision="fp32", model_precision=args.precision,
batch_size=1, batch_size=1,
data_shape="dynamic", data_shape="dynamic",
save_path="./output/auto_log.lpg", save_path="./output/auto_log.lpg",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册