fix save_log_path as null
This commit is contained in:
parent
d93a445d4c
commit
7ad663119a
|
@ -283,5 +283,6 @@ if __name__ == "__main__":
|
||||||
'total_time_s': det_time_dict['total_time']
|
'total_time_s': det_time_dict['total_time']
|
||||||
}
|
}
|
||||||
benchmark_log = benchmark_utils.PaddleInferBenchmark(
|
benchmark_log = benchmark_utils.PaddleInferBenchmark(
|
||||||
text_detector.config, model_info, data_info, perf_info, mems)
|
text_detector.config, model_info, data_info, perf_info, mems,
|
||||||
|
args.save_log_path)
|
||||||
benchmark_log("Det")
|
benchmark_log("Det")
|
||||||
|
|
|
@ -320,7 +320,8 @@ def main(args):
|
||||||
'total_time_s': rec_time_dict['total_time']
|
'total_time_s': rec_time_dict['total_time']
|
||||||
}
|
}
|
||||||
benchmark_log = benchmark_utils.PaddleInferBenchmark(
|
benchmark_log = benchmark_utils.PaddleInferBenchmark(
|
||||||
text_recognizer.config, model_info, data_info, perf_info, mems)
|
text_recognizer.config, model_info, data_info, perf_info, mems,
|
||||||
|
args.save_log_path)
|
||||||
benchmark_log("Rec")
|
benchmark_log("Rec")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue