PaddlePaddle / Paddle2ONNX

ONNX Model Exporter for PaddlePaddle
Apache License 2.0
736 stars 173 forks source link

SLANet_plus表格模型无法转换 #1405

Closed Joker1212 closed 1 month ago

Joker1212 commented 1 month ago

在转换paddlex中的SLANet_plus表格模型,无法转换为onnx,提示常量算子好像不支持 image

aistudio@jupyter-11515527-8327948:~$ paddle2onnx --model_dir ./ --model_filename inference.pdmodel --params_filename inference.pdiparams --save_file ./table.onnx --opset_version 16 --enable_onnx_checker True [Paddle2ONNX] Start to parse PaddlePaddle model... [Paddle2ONNX] Model file path: ./inference.pdmodel [Paddle2ONNX] Parameters file path: ./inference.pdiparams [Paddle2ONNX] Start to parsing Paddle model... [Paddle2ONNX] Oops, there are some operators not supported yet, including while, [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)

Joker1212 commented 1 month ago

按照其他issue切换到版本1.2.5,也还是不行,看解释好像是这个模型两种冲突的算子都有,导致不管怎么样都无法转换 aistudio@jupyter-11515527-8327948:~$ paddle2onnx --model_dir ./ --model_filename inference.pdmodel --params_filename inference.pdiparams --save_file ./table.onnx --opset_version 14 --enable_onnx_checker True [Paddle2ONNX] Start to parse PaddlePaddle model... [Paddle2ONNX] Model file path: ./inference.pdmodel [Paddle2ONNX] Parameters file path: ./inference.pdiparams [Paddle2ONNX] Start to parsing Paddle model... [Paddle2ONNX] Oops, there are some operators not supported yet, including conditional_block,select_input, [ERROR] Due to the unsupported operators, the conversion is aborted.

Zheng-Bicheng commented 1 month ago

已经更新支持 while 算子,等待 CI 结束后 安装 Paddle2ONNX v1.2.10 使用:

Zheng-Bicheng commented 1 month ago

先关闭这个Issues,有问题请再打开并 @Zheng-Bicheng