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转换出来报错 #287

Open
xijunjun opened this issue May 22, 2023 · 0 comments
Open

onnx转换出来报错 #287

xijunjun opened this issue May 22, 2023 · 0 comments

Comments

@xijunjun
Copy link

xijunjun commented May 22, 2023

WARNING: ONNX Optimizer has been moved to https://github.com/onnx/optimizer.
All further enhancements and fixes to optimizers will be done in this new repo.
The optimizer code in onnx/onnx repo will be removed in 1.9 release.

Traceback (most recent call last):
File "detect_imgs_onnx.py", line 59, in
predictor = backend.prepare(predictor, device="CPU") # default CPU
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/caffe2/python/onnx/backend.py", line 708, in prepare
init_net, predict_net = cls._onnx_model_to_caffe2_net(model, device, opset_version, False)
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/caffe2/python/onnx/backend.py", line 875, in _onnx_model_to_caffe2_net
onnx_model = onnx.utils.polish_model(onnx_model)
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/onnx/utils.py", line 24, in polish_model
model = onnx.optimizer.optimize(model)
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/onnx/optimizer.py", line 55, in optimize
optimized_model_str = C.optimize(model_str, passes)
IndexError: Input 405 is undefined!

@xijunjun xijunjun changed the title 两次从预测的偏移量到预测框的转换 onnx转换出来报错 May 22, 2023
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