Skip to content

Initializer with name Constant_117 not found in function 'getInputInitializerId' #23295

@NeoDhirendra

Description

@NeoDhirendra

System Information

opencv version 4.7.0-dev
operation system ubuntu 20.04
python 3.8.10

Detailed description

i am trying to read the paddle onnx model using cv.dnn.readnet() function , but it is throwing error. but the onnx model works fine with onnxruntime.

cv2.error: OpenCV(4.7.0-dev) /home/neoastra/opencv/modules/dnn/src/onnx/onnx_graph_simplifier.cpp:85: error: (-212:Parsing error) Initializer with name Constant_119 not found in function 'getInputInitializerId'

Steps to reproduce

install ppocr from paddleocr github repo.
export the recognition model into onnx format using paddle2onnx.

then use open.dnn.readnet(rec_model.onnx) you will get the error

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions