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

Invalid Rank Error for Input ‘x’ When Using ONNX Runtime #395

Open
DongRuiH opened this issue May 1, 2024 · 3 comments
Open

Invalid Rank Error for Input ‘x’ When Using ONNX Runtime #395

DongRuiH opened this issue May 1, 2024 · 3 comments
Labels
question Further information is requested

Comments

@DongRuiH
Copy link

DongRuiH commented May 1, 2024

onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid rank for input: x Got: 3 Expected: 4 Please fix either the inputs or the model.
这个怎么解决呢

@CVHub520
Copy link
Owner

CVHub520 commented May 1, 2024

onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid rank for input: x Got: 3 Expected: 4 Please fix either the inputs or the model. 这个怎么解决呢

您好,自定义模型需要自行适配下。如果是官方已经适配过的模型,你可以使用 netron 工具对比下 onnx 模型的输入输出节点。

@CVHub520 CVHub520 added the question Further information is requested label May 1, 2024
@Taichipeace
Copy link

onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid rank for input: x Got: 3 Expected: 4 Please fix either the inputs or the model. 这个怎么解决呢

您好,自定义模型需要自行适配下。如果是官方已经适配过的模型,你可以使用 netron 工具对比下 onnx 模型的输入输出节点。

@CVHub520 正好想请教一下,有详细些的适配教程么?
在custom_model.md里,针对未适配模型的集成流程,只有简单的几行介绍。
是否可以有个例子具体讲解一下,比如想要添加PPYOLOE plus的模型,需要在model.py和model_manager.py这2个文件里修改哪些地方?

非常喜欢X-AnyLabeling,是用过的最好用的标注工具,(用过Labelme,LabelImg,EasyData,roLabelImg)
希望可以进一步用好它,所以请您指点,感谢。

@CVHub520
Copy link
Owner

CVHub520 commented May 8, 2024

onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid rank for input: x Got: 3 Expected: 4 Please fix either the inputs or the model. 这个怎么解决呢

您好,自定义模型需要自行适配下。如果是官方已经适配过的模型,你可以使用 netron 工具对比下 onnx 模型的输入输出节点。

@CVHub520 正好想请教一下,有详细些的适配教程么? 在custom_model.md里,针对未适配模型的集成流程,只有简单的几行介绍。 是否可以有个例子具体讲解一下,比如想要添加PPYOLOE plus的模型,需要在model.py和model_manager.py这2个文件里修改哪些地方?

非常喜欢X-AnyLabeling,是用过的最好用的标注工具,(用过Labelme,LabelImg,EasyData,roLabelImg) 希望可以进一步用好它,所以请您指点,感谢。

您好,这个暂时还没写详细教程,等后面有空找个时间录制下教学视频,敬请期待。

@CVHub520 CVHub520 changed the title 模型问题 Invalid Rank Error for Input ‘x’ When Using ONNX Runtime May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants