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时报错 #1472

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

微调后的slanet_plus模型转onnx时报错 #1472

drivingchangeworld opened this issue Dec 30, 2024 · 1 comment

Comments

@drivingchangeworld
Copy link

请将下面信息填写完整,便于我们快速解决问题,谢谢!

问题描述
请在此处详细的描述报错信息
您好,按照https://github.com/PaddlePaddle/PaddleX/blob/release/3.0-beta1/docs/module_usage/tutorials/ocr_modules/table_structure_recognition.md这个指导,微调slanet_plus网络,然后导出onnx模型时貌似报模型不支持
paddle2onnx --model_dir ./inference \

--model_filename inference.pdmodel
--params_filename inference.pdiparams
--save_file ./model.onnx
--opset_version 16
--enable_onnx_checker True
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_sync_bn/best_accuracy/inference/inference.pdmodel
[Paddle2ONNX] Parameters file path: /data/huangzaiguang/TRS/PaddleX/output/1230_slanet_plus_sync_bn/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 1735550027 (unix time) try "date -d @1735550027" if you are using GNU date ***]
[SignalInfo: *** SIGABRT (@0x30) received by PID 48 (TID 0x7febae70f740) from PID 48 ***]

Aborted (core dumped)

更多信息 :

  • 用于部署的推理引擎:
  • 为什么需要转换为ONNX格式:
  • Paddle2ONNX版本:
  • 你的联系方式(Email/Wechat/Phone):
    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
    报错截图

其他信息

@Sherryran08
Copy link

Sherryran08 commented Jan 16, 2025

我也遇到了这个问题,请问现在可以支持了吗

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