Closed BackT0TheFuture closed 4 years ago
感谢关注和试用,目前还在紧急修复和更新相关文档中。今天会同步进展。
推理文档已经更新, https://github.com/PaddlePaddle/PaddleOCR/blob/develop/doc/inference.md
里面介绍详细介绍了超轻量中文识别模型推理和基于CTC损失的识别模型推理。而基于Attention损失的识别模型推理还在调试中。对于中文文本识别,建议优先选择基于CTC损失的识别模型,实践中也发现基于Attention损失的效果不如基于CTC损失的识别模型。
attention模型转inference model 问题已修复
paddlepaddle-gpu 1.7.2.post107 PaddleOCR 3b40c32
python tools/export_model.py -c configs/rec/rec_r34_vd_tps_bilstm_attn.yml -o Global.checkpoints="./output/rec/rec_r34_vd_tps_bilstm_attn/best_accuracy" Global.save_inference_dir="./inference/rec/rec_r34_vd_tps_bilstm_attn"
python tools/export_model.py -c configs/rec/rec_mv3_tps_bilstm_attn.yml -o Global.checkpoints="./output/rec/rec_mv3_tps_bilstm_attn/best_accuracy" Global.save_inference_dir="./inference/rec/rec_mv3_tps_bilstm_attn"