-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
human_parsing example from dnn Assertion failed (int)_numAxes == inputs[0].size() #22221
Description
System information (version)
- OpenCV => 4.6
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2019
Detailed description
human_parsing example from dnn module not working properly no matter of input it every time asserting at:
modules\dnn\src\layers\permute_layer.cpp:161: error: (-215:Assertion failed) (int)_numAxes == inputs[0].size() in function 'cv::dnn::PermuteLayerImpl::getMemoryShapes'
I tried to resize / convert input image in 384x384 dimensions and different formats but it still not helping,
I assume the problem is in lip_jppnet_384.pb that is told to use in comments to the example.
Steps to reproduce
- download lip_jppnet_384.pb by link in the example
- run c++ or python example of human_parsing from dnn module
- observe assert in output window
Issue submission checklist
-
[*] I report the issue, it's not a question
-
[*] I checked the problem with documentation, FAQ, open issues,
forum.opencv.org, Stack Overflow, etc and have not found any solution -
[*] I updated to the latest OpenCV version and the issue is still there
-
[*] There is reproducer code and related data files: videos, images, onnx, etc