PaddlePaddle / X2Paddle

Deep learning model converter for PaddlePaddle. (『飞桨』深度学习模型转换工具)
http://www.paddlepaddle.org/
Apache License 2.0
739 stars 165 forks source link

ONNX模型转为paddle模型报错 #915

Open zhao-sy opened 1 year ago

zhao-sy commented 1 year ago

感谢您参与 X2Paddle 社区! 问题模版为了 X2Paddle 能更好的迭代,例如新功能发布、 RoadMaps 和错误跟踪. :smile_cat:

问题描述

看到报错显示conv必须是2d或3d格式,想问一下使用了conv1d的模型可以怎么转换为paddle模型

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\11832\anaconda3\envs\x2paddle\Scripts\x2paddle-script.py", line 33, in sys.exit(load_entry_point('x2paddle==1.3.9', 'console_scripts', 'x2paddle')()) File "C:\Users\11832\anaconda3\envs\x2paddle\lib\site-packages\x2paddle-1.3.9-py3.9.egg\x2paddle\convert.py", line 489, in main onnx2paddle( File "C:\Users\11832\anaconda3\envs\x2paddle\lib\site-packages\x2paddle-1.3.9-py3.9.egg\x2paddle\convert.py", line 304, in onnx2paddle mapper = ONNXOpMapper(model) File "C:\Users\11832\anaconda3\envs\x2paddle\lib\site-packages\x2paddle-1.3.9-py3.9.egg\x2paddle\op_mapper\onnx2paddle\onnx_op_mapper.py", line 52, in init func(node) File "C:\Users\11832\anaconda3\envs\x2paddle\lib\site-packages\x2paddle-1.3.9-py3.9.egg\x2paddle\op_mapper\onnx2paddle\opset_legacy.py", line 112, in run_mapping raise Exception("convert failed node:{}, op_type is {}".format( Exception: convert failed node:109, op_type is Conv

具体信息

wjj19950828 commented 1 year ago

@zhao-sy 这个具体是什么模型呢?麻烦提供一下ONNX模型吧,我来看下具体原因

另外,可以描述一下以下两个问题吗: 1、具体业务场景 2、为什么有转到Paddle部署的需求呢?

感谢~