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

执行报错入下。请大佬看一看啊!! #34

Open
stylevip opened this issue Nov 3, 2024 · 4 comments
Open

执行报错入下。请大佬看一看啊!! #34

stylevip opened this issue Nov 3, 2024 · 4 comments

Comments

@stylevip
Copy link

stylevip commented Nov 3, 2024

编译试了onnx1.10 1.15.16,导出的onnx文件,--opset 12 和 --batch 1 加上不加都不行.请大佬指一下方向啊,到底是哪里的问题。

[ERROR:[email protected]] global onnx_importer.cpp:1064 cv::dnn::dnn4_v20230620::ONNXImporter::handleNode DNN/ONNX: ERROR during processing node with 1 inputs and 1 outputs: [Floor]:(onnx_node!/model.11/Floor) from domain='ai.onnx'
[ERROR:[email protected]] global onnx_importer.cpp:1064 cv::dnn::dnn4_v20230620::ONNXImporter::handleNode DNN/ONNX: ERROR during processing node with 1 inputs and 1 outputs: [Floor]:(onnx_node!/model.11/Floor) from domain='ai.onnx'
read net failured!

@stylevip
Copy link
Author

stylevip commented Nov 3, 2024

torch1.12.x的版本?找下torch.onnx.export() 这个函数里面的do_constant_folding=True 改为False再试试看。应该是这个单词,如果打错你自己查一下这个参数具体是怎么拼写的

改了试了,还是不行。谢谢大佬

@UNeedCryDear
Copy link
Owner

torch1.12.x的版本?找下torch.onnx.export() 这个函数里面的do_constant_folding=True 改为False再试试看。应该是这个单词,如果打错你自己查一下这个参数具体是怎么拼写的

@stylevip
Copy link
Author

stylevip commented Nov 3, 2024

非常感谢!现在导出ONNX用的TORCH是2.3.1+CU121的,我先看看您说的地方,谢谢!

@UNeedCryDear
Copy link
Owner

torch2.x的版本好像opencv需要4.8以上支持了,具体我也没有研究过,后面基本上转onnxruntime和tensorRT去了

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

2 participants