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

报错,无法运行 #1

Open
JHC000abc opened this issue May 12, 2023 · 4 comments
Open

报错,无法运行 #1

JHC000abc opened this issue May 12, 2023 · 4 comments

Comments

@JHC000abc
Copy link

JHC000abc commented May 12, 2023

image

@hpc203
Copy link
Owner

hpc203 commented May 12, 2023

image

这个错误原因很明显的,tuple类型不能修改元素值。我已经修改了python代码,添加了一个类型判断,如果是tuple,就转换成list

@bingo787
Copy link

大佬,为什么opencv4.7不行,要opencv4.5?

@hpc203
Copy link
Owner

hpc203 commented Jun 22, 2023

大佬,为什么opencv4.7不行,要opencv4.5?
C++程序,使用opencv4.7推理是可以的。不过需要注意在net.forward之前加上net.enableWinograd(false);
原因,可以去看我的csdn博客文章 https://blog.csdn.net/nihate/article/details/112731327

@bingo787
Copy link

大佬,为什么opencv4.7不行,要opencv4.5?
C++程序,使用opencv4.7推理是可以的。不过需要注意在net.forward之前加上net.enableWinograd(false);
原因,可以去看我的csdn博客文章 https://blog.csdn.net/nihate/article/details/112731327

我是在 net = cv::dnn::readNetFromONNX(modelPath); 时候报错;
OpenCV fails to import ONNX model: error: (-215:Assertion failed) !isDynamicShape in function 'cv::dnn::dnn4_v20220524::ONNXImporter::parseShape'

请教下您遇到过吗

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

3 participants