未验证 提交 98ad0928 编写于 作者: W Wojciech Uss 提交者: GitHub

fix inference script in ocr_recognition

The `get_feeder_data()` method needs the `need_label` parameter set to `False` in inference for it to work.
上级 66035913
......@@ -79,7 +79,7 @@ def inference(args):
batch_times = []
iters = 0
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:
break
if iters < args.skip_batch_num:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册