Skip to content

Can't create layer "conv1_relu/Identity:0" of type "Min" in function 'getLayerInstance' #20438

@chirag900

Description

@chirag900
System information (version)
  • OpenCV(4.5.3-dev)
  • Operating System / Platform => Ubuntu 20.04
  • Compiler => gcc 9.3.0

Description of the issue:
I am using the mobilenet model which is converted using keras2onnx. I am unable to load the model by using readNet or readNetFromONNX in opencv. And I have installed Opencv from source (OpenCV(4.5.3-dev)).

steps to reproduce :

Code is as below : (C++)
std::string Mobilenet_Model = "/mobilenet_model.onnx";
cv::dnn::Net net = cv::dnn::readNetFromONNX(Mobilenet_Model);

Error : Node [Min]:(conv1_relu/Identity:0) parse error: OpenCV(4.5.3-dev) /opencv_build/opencv/modules/dnn/src/dnn.cpp:630: error: (-2:Unspecified error) Can't create layer "conv1_relu/Identity:0" of type "Min" in function 'getLayerInstance'
Aborted (core dumped)

You can find the architecture of the mobilenet model in the screenshot.

Mobilenet_Model

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions