How can i load a onnx with opencv?

asked 2018-12-11 23:45:09 -0500

vealocia gravatar image

updated 2018-12-11 23:46:31 -0500

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

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?

edit retag flag offensive close merge delete

Comments

@vealocia, Is it possible to share model.onnx?

dkurt gravatar imagedkurt ( 2018-12-12 00:44:13 -0500 )edit