-
-
Notifications
You must be signed in to change notification settings - Fork 55.9k
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
OpenCV cannot import ONNX model: (outShape[2 + i] - 1) * strides[i] < inpShape[i] + pads_end[i] #22900
Comments
I tried the network with diagnostic tool and It looks like pooling issue already fixed in 4.x. There are more issues that prevent from loading with OpenCV:
|
Hi @asmorkalov , I just checked and no newer version of OpenCV 4.x is available. Then I do not understand the remark about the pooling issue. Give the additional problems, I guess there is no chance to get this working in the near future? Cheers Uwe |
Still failing in opencv-python-rolling-4.7.0.68 |
Still failing in opencv_python_rolling-4.8.0.20230624 Note to self: \Local\devel\Python\OpenCV\dnn_segmentation_paddle_portrait_pp_humansegv1_lite\inference.py |
@Abdurrahheem could you take a look on it? |
@ukoehler 4.x does not support dinamic shapes currently. So the best option for now would be to use OpenCV 5 and set graph to new as follows |
|
System Information
OpenCV => Python opencv-python-rolling 4.6.0.20221112 (no update available)
Operating System / Platform Windows 10 64 bit
Python =>3.10.4
Detailed description
I converted the Portrait PP-HumanSegV1-Lite from PaddleSeg to ONNX (the model load in netron without complaints):
https://github.com/PaddlePaddle/PaddleSeg/tree/release/2.7/contrib/PP-HumanSeg
This fails to load in OpenCV 4.6 pre-release:
Steps to reproduce
Find the ONNX file here: https://drive.google.com/file/d/1HieIVf2HLW3-e_ggmMgVote1pvFQEGuG/view?usp=sharing
Issue submission checklist
The text was updated successfully, but these errors were encountered: