未验证 提交 0c65e30c 编写于 作者: W whs 提交者: GitHub

Fix infer of ocr. (#2290)

上级 2a9bd0d8
...@@ -11,7 +11,7 @@ sos = 0 ...@@ -11,7 +11,7 @@ sos = 0
eos = 1 eos = 1
gradient_clip = 10 gradient_clip = 10
LR = 1.0 LR = 1.0
beam_size = 2 beam_size = 1
learning_rate_decay = None learning_rate_decay = None
......
from __future__ import print_function from __future__ import print_function
import paddle.fluid as fluid import paddle.fluid as fluid
from utility import add_arguments, print_arguments, to_lodtensor, get_ctc_feeder_data, get_attention_feeder_for_infer from utility import add_arguments, print_arguments, to_lodtensor, get_ctc_feeder_data, get_attention_feeder_for_infer, get_ctc_feeder_for_infer
import paddle.fluid.profiler as profiler import paddle.fluid.profiler as profiler
from crnn_ctc_model import ctc_infer from crnn_ctc_model import ctc_infer
from attention_model import attention_infer from attention_model import attention_infer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册