PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
44.26k stars 7.82k forks source link

大礼包里面的手写识别模型怎样转换? #10125

Closed WilliamQf-AI closed 1 year ago

WilliamQf-AI commented 1 year ago

大礼包里面有一个手写识别模型,要导出paddle inference模型,没有yml文件怎么办?哪里有? image

WilliamQf-AI commented 1 year ago

或者说要怎样量化成pdmodel模型?

Tavish77 commented 1 year ago

-c 后面设置训练算法的yml配置文件

-o 配置可选参数

Global.pretrained_model 参数设置待转换的训练模型地址,不用添加文件后缀 .pdmodel,.pdopt或.pdparams。

Global.save_inference_dir参数设置转换的模型将保存的地址。

python3 tools/export_model.py -c configs/rec/PP-OCRv3/en_PP-OCRv3_rec.yml -o Global.pretrained_model=./pretrain_models/en_PP-OCRv3_rec_train/best_accuracy Global.save_inference_dir=./inference/en_PP-OCRv3_rec/

tools工具里面可以导出 ,另外方便提供一下这个模型参数吗 我也申请了这个 但是没有回应

andyjiang1116 commented 1 year ago

你好,配置文件使用v3蒸馏配置即可

WilliamQf-AI commented 1 year ago

谢谢大佬们,问题解决啦

WilliamQf-AI commented 1 year ago

执行如下命令: python3 tools/export_model.py -c ./inference_model/case_handwrite/ch_PP-OCRv3_rec_distillation.yml -o Global.pretrained_model=./inference_model/case_handwrite/best_accuracy Global.save_inference_dir=./inference_model/1/

xuxh6 commented 1 year ago

开源大礼包在哪下载的?