-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Initializer with name Constant_117 not found in function 'getInputInitializerId' #23295
Copy link
Copy link
Closed
Labels
bugcategory: dnncategory: dnn (onnx)ONNX suport issues in DNN moduleONNX suport issues in DNN moduleconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete
Milestone
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugcategory: dnncategory: dnn (onnx)ONNX suport issues in DNN moduleONNX suport issues in DNN moduleconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete