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

Slanet_plus导出onnx,遇到算子不支持 #2742

Open
4 tasks
drivingchangeworld opened this issue Dec 30, 2024 · 1 comment
Open
4 tasks

Slanet_plus导出onnx,遇到算子不支持 #2742

drivingchangeworld opened this issue Dec 30, 2024 · 1 comment
Assignees

Comments

@drivingchangeworld
Copy link

Checklist:

描述问题

您好,使用paddlex 微调Slanet_Plus模型,导出onnx时遇到算子不支持。报错信息如下:
[Paddle2ONNX] Oops, there are some operators not supported yet, including sync_batch_norm,
[ERROR] Due to the unsupported operators, the conversion is aborted.

复现

  1. 高性能推理
    转onnx命令
    paddle2onnx --model_dir ./inference
    --model_filename inference.pdmodel
    --params_filename inference.pdiparams
    --save_file ./model.onnx
    --opset_version 11
    --enable_onnx_checker True

  2. 服务化部署

    • 您是否完全按照服务化部署文档教程跑通了流程?

    • 您在服务化部署中是否有使用高性能推理插件,如果是,您使用的是离线激活方式还是在线激活方式?

    • 如果是多语言调用的问题,请给出调用示例子。

  3. 端侧部署

    • 您是否完全按照端侧部署文档教程跑通了流程?

    • 您使用的端侧设备是?对应的PaddlePaddle版本和PaddleLite版本分别是什么?

  4. 您使用的模型数据集是?

  5. 请提供您出现的报错信息及相关log
    grep: warning: GREP_OPTIONS is deprecated; please use an alias or script

[Paddle2ONNX] Start to parse PaddlePaddle model...
[Paddle2ONNX] Model file path: /data/huangzaiguang/TRS/PaddleX/output/1230_slanet_plus/best_accuracy/inference/inference.pdmodel
[Paddle2ONNX] Parameters file path: /data/huangzaiguang/TRS/PaddleX/output/1230_slanet_plus/best_accuracy/inference/inference.pdiparams
[Paddle2ONNX] Start to parsing Paddle model...
[Paddle2ONNX] Oops, there are some operators not supported yet, including sync_batch_norm,
[ERROR] Due to the unsupported operators, the conversion is aborted.


C++ Traceback (most recent call last):

0 paddle2onnx::Export(char const*, char const*, char**, int*, int, bool, bool, bool, bool, bool, paddle2onnx::CustomOp*, int, char const*, char**, int*, char const*, bool*, bool, char**, int)


Error Message Summary:

FatalError: Process abort signal is detected by the operating system.
[TimeInfo: *** Aborted at 1735541162 (unix time) try "date -d @1735541162" if you are using GNU date ***]
[SignalInfo: *** SIGABRT (@0xfe80) received by PID 65152 (TID 0x7ff45820f740) from PID 65152 ***]

Aborted (core dumped)

环境

  1. 请提供您使用的PaddlePaddle、PaddleX版本号、Python版本号
    paddle2onnx 1.3.1
    paddlefsl 1.1.0
    paddlenlp 2.8.0.post0
    paddleocr 0.1.0.dev1+g3f32858
    paddlepaddle-gpu 3.0.0b1
    paddlex 3.0.0b2
    python 3.10
  2. 请提供您使用的操作系统信息,如Linux/Windows/MacOS
    Linux
  3. 请问您使用的CUDA/cuDNN的版本号是?
    CUDA 12.3
@zhangyubo0722
Copy link
Collaborator

该问题已修复,需要拉取最新代码重新训练并导出onnx模型

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

3 participants