-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Error in function computeShapeByReshapeMask, when loading official ONNX model (mask-rcnn) #17914
Copy link
Copy link
Closed
Labels
category: dnnconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation completefeature
Milestone
Description
System information (version)
- OpenCV => 3.4.11
- Operating System / Platform =>Windows 7 64 Bit
- Compiler => clang-cl
Detailed description
When I load ONNX model with OpenCV DNN module I get this error:
OpenCV(4.3.0) D:\Git\opencv\modules\dnn\src\layers\reshape_layer.cpp:133: error: (-5:Bad argument) Copy dim[3] (which has zero size) is out of the source shape bounds in function 'computeShapeByReshapeMask'
Steps to reproduce
cv::dnn::readNetFromONNX( "MaskRCNN-10.onnx" );
ONNX model can be found here: https://github.com/onnx/models/tree/master/vision/object_detection_segmentation/mask-rcnn
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues,
answers.opencv.org, Stack Overflow, etc and have not found solution - I updated to latest OpenCV version and the issue is still there
- There is reproducer code and related data files: videos, images, onnx, etc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category: dnnconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation completefeature