Skip to content

Error in function computeShapeByReshapeMask, when loading official ONNX model (mask-rcnn) #17914

@MrModez

Description

@MrModez
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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions