Paddle2ONNX icon indicating copy to clipboard operation
Paddle2ONNX copied to clipboard

无法转换PP-DocLayoutV2

Open cole-dda opened this issue 2 months ago • 15 comments

问题描述 无法转换PP-DocLayoutV2为onnx

paddle2onnx --model_dir ./PP-DocLayoutV2 --model_filename inference.pdmodel --params_filename inference.pdiparams --save_file inference.onnx

更多信息 :

  • 用于部署的推理引擎: paddlex
  • 为什么需要转换为ONNX格式:部署简单
  • Paddle2ONNX版本: 2.01
  • 你的联系方式(Email/Wechat/Phone):

报错截图

Image

其他信息

cole-dda avatar Oct 17 '25 03:10 cole-dda

遇到同样的问题,希望能尽快支持

simtony avatar Oct 21 '25 08:10 simtony

遇到了同样的问题

2025-10-22 00:33:15 [WARNING] The .pdmodel file is deprecated in paddlepaddle 3.0 and will be removed in the future. Try to convert from .pdmodel file to json file. I1022 00:33:15.624219 4264976128 program_interpreter.cc:257] New Executor is Running. [Paddle2ONNX] Start parsing the Paddle model file... [Paddle2ONNX] [ERROR][Paddle2ONNX] Due to the unsupported operators, the conversion is aborted.

openmartin avatar Oct 21 '25 16:10 openmartin

Same here

werther0223 avatar Oct 24 '25 01:10 werther0223

same

nico-zck avatar Oct 29 '25 02:10 nico-zck

same

TragedyN avatar Oct 30 '25 12:10 TragedyN

https://huggingface.co/PaddlePaddle/PP-DocLayoutV2/tree/main 最新参数已经更新了inference.json文件,但是使用paddle2onnx转换的时候,依旧出现算子报错

# paddle2onnx  --model_dir=./PP-DocLayoutV2  --model_filename inference.json --params_filename inference.pdiparams  --save_file=./PP-DocLayoutV2/inference.onnx  --enable_onnx_checker=True
I1030 20:55:03.003997 64066 init.cc:238] ENV [CUSTOM_DEVICE_ROOT]=/usr/local/lib/python3.10/dist-packages/paddle_custom_device
I1030 20:55:03.004083 64066 init.cc:146] Try loading custom device libs from: [/usr/local/lib/python3.10/dist-packages/paddle_custom_device]
I1030 20:55:03.838220 64066 custom_device_load.cc:51] Succeed in loading custom runtime in lib: /usr/local/lib/python3.10/dist-packages/paddle_custom_device/libpaddle-custom-npu.so
I1030 20:55:03.838292 64066 custom_device_load.cc:58] Skipped lib [/usr/local/lib/python3.10/dist-packages/paddle_custom_device/libpaddle-custom-npu.so]: no custom engine Plugin symbol in this lib.
I1030 20:55:03.842186 64066 custom_kernel.cc:68] Succeed in loading 359 custom kernel(s) from loaded lib(s), will be used like native ones.
I1030 20:55:03.842419 64066 init.cc:158] Finished in LoadCustomDevice with libs_path: [/usr/local/lib/python3.10/dist-packages/paddle_custom_device]
I1030 20:55:03.842468 64066 init.cc:244] CustomDevice: npu, visible devices count: 8
[Paddle2ONNX] Start parsing the Paddle model file...
[Paddle2ONNX] 
[ERROR][Paddle2ONNX] 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 1761828913 (unix time) try "date -d @1761828913" if you are using GNU date ***]
  [SignalInfo: *** SIGABRT (@0xfa42) received by PID 64066 (TID 0xffffba693010) from PID 64066 ***]

Aborted

nico-zck avatar Oct 30 '25 12:10 nico-zck

@0x3878f @Zheng-Bicheng @risemeup1 @qzylalala @zhanghonggeng 求大佬们看看什么问题

nico-zck avatar Nov 04 '25 13:11 nico-zck

same

RayJinStudio avatar Nov 05 '25 08:11 RayJinStudio

same issue

guweixin avatar Nov 06 '25 08:11 guweixin

same issue

lxjhunan avatar Nov 08 '25 03:11 lxjhunan

Same issue here. Any updates?

eddiexiaxh avatar Nov 10 '25 02:11 eddiexiaxh

有onnx模型了吗?

nissansz avatar Nov 12 '25 12:11 nissansz

完蛋 这个仓是不是不维护了

nico-zck avatar Nov 25 '25 08:11 nico-zck

same issue

wangziren1 avatar Nov 28 '25 02:11 wangziren1

same issue jijijijijijijijijiji :(

AKCqhzdy avatar Dec 10 '25 13:12 AKCqhzdy