Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can i load a onnx with opencv?

I have just convert a model from pytorch to onnx and now i want load it with opencv so that i can use it in android application. But every time i run a test code in python

import cv2 net=cv2.dnn.readNetFromONNX('./model.onnx')

It got a error which said

error: OpenCV(3.4.4) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:272: error: (-204:Requested object was not found) Blob 13 not found in const blobs in function 'getBlob'

Can anybody help me?

click to hide/show revision 2
retagged

updated 2018-12-11 23:46:10 -0600

berak gravatar image

How can i load a onnx with opencv?

I have just convert a model from pytorch to onnx and now i want load it with opencv so that i can use it in android application. But every time i run a test code in python

import cv2 net=cv2.dnn.readNetFromONNX('./model.onnx')

It got a error which said

error: OpenCV(3.4.4) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:272: error: (-204:Requested object was not found) Blob 13 not found in const blobs in function 'getBlob'

Can anybody help me?

How can i load a onnx with opencv?

I have just convert a model from pytorch to onnx and now i want load it with opencv so that i can use it in android application. But every time i run a test code in python

import cv2 net=cv2.dnn.readNetFromONNX('./model.onnx')

It got a error which said

error: OpenCV(3.4.4) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:272: error: (-204:Requested object was not found) Blob 13 not found in const blobs in function 'getBlob'

Can anybody help me?