Paddle-Lite icon indicating copy to clipboard operation
Paddle-Lite copied to clipboard

paddleocr官方训练模型转为inference模型成功,然后转nb模型报错

Open renshujiajia opened this issue 1 year ago • 1 comments

为使您的问题得到快速解决,在建立 Issue 前,请您先通过如下方式搜索是否有相似问题: 历史 issue, FAQ 文档, 官方文档

建立 issue 时,为快速解决问题,请您根据使用情况给出如下信息:

  • 标题:inference模型转nb模型报错

  • 版本、环境信息:    1)Paddle Lite 版本:2.13rc0    2)Host 环境:Linux bc4a5cc11db2 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 使用docker registry.baidubce.com/paddlepaddle/paddle:2.6.0-gpu-cuda12.0-cudnn8.9-trt8.6

  • 模型信息    1)模型名称 ch_PP-OCRv3_det_slim 2)模型链接 https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_det_slim_distill_train.tar

  • 复现信息: paddle_lite_opt --model_file=inference.pdmodel --param_file=inference.pdiparams --optimize_out=./ch_PP-OCRv3_rec_opt --valid_targets=arm --optimize_out_type=naive_buffer

  • 问题描述: 将官方训练模型转换成inference模型正常,再使用paddle-lite转换模型为nb模型时出错,报错如下 Loading topology data from inference.pdmodel Loading params data from inference.pdiparams

  1. Model is successfully loaded! [F 1/17 15:31:42.510 ...e-Lite/lite/core/model/general/op_desc.h:118 GetAttr] Check failed: it != attrs().end(): No attributes called beta found for swish Aborted

renshujiajia avatar Jan 17 '24 16:01 renshujiajia

看起来 Paddle Lite 2.13rc 不支持新的swish 的 beta 属性。

hong19860320 avatar Feb 04 '24 07:02 hong19860320