未验证 提交 4c3e5234 编写于 作者: T Tao Luo 提交者: GitHub

Merge pull request #1226 from PaddlePaddle/wojtuss/ocr-fix-infer

fix inference script in ocr_recognition
...@@ -79,7 +79,7 @@ def inference(args): ...@@ -79,7 +79,7 @@ def inference(args):
batch_times = [] batch_times = []
iters = 0 iters = 0
for data in infer_reader(): for data in infer_reader():
feed_dict = get_feeder_data(data, place) feed_dict = get_feeder_data(data, place, need_label=False)
if args.iterations > 0 and iters == args.iterations + args.skip_batch_num: if args.iterations > 0 and iters == args.iterations + args.skip_batch_num:
break break
if iters < args.skip_batch_num: if iters < args.skip_batch_num:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册