onnx / onnx/models

OpenCV gives error Bad argument when loading MaskRCNN-10.onnx

Open
#329 1 comment 1 reaction 1 assignee View on GitHub

@askhade is already working on this.

Since Jul 13, 2020.

bug
Dominant language
Jupyter Notebook
Stars
9.8k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Bug Report

Which model does this pertain to?

MaskRCNN-10.onnx

Describe the bug

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'

Reproduction instructions

cv::dnn::readNetFromONNX( "MaskRCNN-10.onnx" );

System Information
Windows 10 64bit, OpenCV 4.3.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.