PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.97k stars 1.61k forks source link

Lite v2.13 rc版本转换手写识别模型到nb模型失败 #10216

Closed WilliamQf-AI closed 1 year ago

WilliamQf-AI commented 1 year ago

1)Paddle Lite 版本:v2.13rc 2)Host 环境:macos 12.6.3

模型信息 1)模型名称 :手写识别 2)模型链接 :大礼包里面的手写识别 复现信息:opt --model_file=./case_handwrite/best_accuracy.pdopt --param_file=./case_handwrite/best_accuracy.pdparams --optimize_out_type=naive_buffer --optimize_out=./case_handwrite --valid_targets=arm 问题描述:执行以上命令,输出如下: Loading topology data from ./case_handwrite/best_accuracy.pdopt Loading params data from ./case_handwrite/best_accuracy.pdparams [F 4/11 15:16:32.660 .../lite/core/model/general/program_desc.cc:51 GetBlock] Check failed: (idx < static_cast(BlocksSize())): 0!<0 idx >= blocks.size() zsh: abort opt --model_file=./case_handwrite/best_accuracy.pdopt --valid_targets=arm image

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/