提交 aab602c4 编写于 作者: W wanghaoshuang

Add ce for ocr model.

上级 7ace59e0
python ctc_train.py --batch_size=128 --total_step=10000 --use_gpu=True
python ctc_train.py --batch_size=128 --total_step=10000 --use_gpu=True | python _ce.py
......@@ -98,6 +98,10 @@ def train(args, data_reader=ctc_reader):
print "\nTime: %s; Iter[%d]; Test seq error: %s.\n" % (
time.time(), iter_num, str(test_seq_error[0]))
#Note: The following logs are special for CE monitoring.
#Other situations do not need to care about these logs.
print("kpis test_seq_error %f" % test_seq_error[0])
def save_model(args, exe, iter_num):
filename = "model_%05d" % iter_num
fluid.io.save_params(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册