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

ONNX 转 Paddle,MaxUnpool不支持 #1009

Open
1 of 3 tasks
CUTEPKQ opened this issue Apr 6, 2024 · 0 comments
Open
1 of 3 tasks

ONNX 转 Paddle,MaxUnpool不支持 #1009

CUTEPKQ opened this issue Apr 6, 2024 · 0 comments

Comments

@CUTEPKQ
Copy link

CUTEPKQ commented Apr 6, 2024

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

问题描述

  • 错误信息
    使用x2paddle将onnx模型转换成paddle时,MaxUnpool算子不支持,转换失败。日志如下:
    INFO:root:paddle.version = 2.6.1
    INFO:root:Now translating model from onnx to paddle.
    model ir_version: 6, op version: 11
    Shape inferencing ...
    [WARNING] Incomplete symbolic shape inference
    Shape inferenced.
    Now, onnx2paddle support convert onnx model opset_verison [7, 8, 9, 10, 11, 12, 13, 14, 15], opset_verison of your onnx model is 11.

========= 1 OPs are not supported yet ===========
========== MaxUnpool ============
Traceback (most recent call last):
File "/usr/local/bin/x2paddle", line 11, in <module>
load_entry_point('x2paddle==1.4.1', 'console_scripts', 'x2paddle')()
File "/usr/local/lib/python3.8/dist-packages/x2paddle-1.4.1-py3.8.egg/x2paddle/convert.py", line 489, in main
onnx2paddle(
File "/usr/local/lib/python3.8/dist-packages/x2paddle-1.4.1-py3.8.egg/x2paddle/convert.py", line 304, in onnx2paddle
mapper = ONNXOpMapper(model)
File "/usr/local/lib/python3.8/dist-packages/x2paddle-1.4.1-py3.8.egg/x2paddle/op_mapper/onnx2paddle/onnx_op_mapper.py", line 38, in init
raise Exception("Model is not supported yet.")
Exception: Model is not supported yet.

  • 错误截图
    2024-04-06_15-55

具体信息

  • 转换模型后用处
    • 使用 Paddle 框架/ PaddleInference 推理预测
    • 使用 Paddle-Lite 做移动端推理
    • 转换预训练参数,再使用 Paddle 进行模型开发
  • 模型来源
    GndNet:https://github.com/anshulpaigwar/GndNet
  • 应用场景
    用于地形检测
  • 版本信息
    PaddlePaddle = 2.6.1
    X2Paddle = 1.4.1
    来源框架版本 ONNX opset_verison = 11
  • 您的联系方式(邮箱/微信/电话)
    [email protected]
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

1 participant