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

TypeError: ONNX node of type Shape is not supported. #26

Open
wanglaotou opened this issue Nov 21, 2019 · 13 comments
Open

TypeError: ONNX node of type Shape is not supported. #26

wanglaotou opened this issue Nov 21, 2019 · 13 comments

Comments

@wanglaotou
Copy link

i have redefine the layer type like prelu and Transpose, when i run convertCaffe.py and i get error like this.
onnx
my env is ubuntu16.04, pytorch 1.3.0 and torchvision 0.3.0.

@wanglaotou
Copy link
Author

@yjhuasheng
Copy link

先使用这个https://github.com/daquexian/onnx-simplifier,可以去掉这些层

@LeonNerd
Copy link

先使用这个https://github.com/daquexian/onnx-simplifier,可以去掉这些层

您好,请问我转的是faster r-cnn 我的 --input-shape 应该如何输入。我的faster r-cnn.onnx来自onnx model zool

@ShidiDaisy
Copy link

先使用这个https://github.com/daquexian/onnx-simplifier,可以去掉这些层

您好,请问我转的是faster r-cnn 我的 --input-shape 应该如何输入。我的faster r-cnn.onnx来自onnx model zool

I also have this issue. Have u solved it?

@yjhuasheng
Copy link

yjhuasheng commented Aug 20, 2020 via email

@china56321
Copy link

i have redefine the layer type like prelu and Transpose, when i run convertCaffe.py and i get error like this.
onnx
my env is ubuntu16.04, pytorch 1.3.0 and torchvision 0.3.0.

Have you solved this problem ? i encountered the same issue ?

@ruabliuqiu
Copy link

先使用这个https://github.com/daquexian/onnx-simplifier,可以去掉这些层

您好,我该怎么用onnx-simplifier去掉reshape节点呢

@yjhuasheng
Copy link

先使用这个https://github.com/daquexian/onnx-simplifier,可以去掉这些层

您好,我该怎么用onnx-simplifier去掉reshape节点呢

那我就不清楚了啊

@ruabliuqiu
Copy link

i have redefine the layer type like prelu and Transpose, when i run convertCaffe.py and i get error like this.
onnx
my env is ubuntu16.04, pytorch 1.3.0 and torchvision 0.3.0.

Have you solved this problem ? i encountered the same issue ?

你解决了吗?

@se7enXF
Copy link

se7enXF commented May 24, 2021

一样的问题,请问有人解决了吗?

@gufanyuanying0852
Copy link

我也是遇到了一样的问题,想问有人解决了吗

@tothedistance
Copy link

先使用这个https://github.com/daquexian/onnx-simplifier,可以去掉这些层

您好,我该怎么用onnx-simplifier去掉reshape节点呢

python -m onnxsim onnx模型名称 yolov5s-simple.onnx 得到最终简化后的onnx模型
https://github.com/Wulingtian/yolov5_onnx2caffe

@tothedistance
Copy link

detect层里算坐标里面有shape。但一般移植都是cpu算这部分,simplifier刚好去掉了。估计原理是不支持的就去掉,但感觉不稳定。

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

9 participants