Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
renshujiajia opened this issue Jan 17, 2024 · 1 comment

Comments

@renshujiajia
Copy link

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

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

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

  • 版本、环境信息:
       1)Paddle Lite 版本:2.13rc0
       2)Host 环境:Linux bc4a5cc11db2 5.10.16.3-microsoft-standard-WSL2 Crash #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
@hong19860320
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants