Error in reading onnx model (python)

asked 2019-09-05 12:49:07 -0600

zkumar gravatar image

Hi, Just installed opencv (contrib) 4.1. downloaded the sample for action recognition and supporting file. Downloaded the ONNX model as per download_models.py.

but net = cv.dnn.readNet(net_path) is failing, I tried net = cv.dnn.readNetFromONNX(net_path), it is also failing.

I installed OpenCV 3.4.5 and tried the code but error is consistent

error: OpenCV(3.4.5) C:\projects\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp:57: error: (-210:Unsupported format or combination of formats) Failed to parse onnx model in function 'cv::dnn::experimental_dnn_34_v11::ONNXImporter::ONNXImporter'

edit retag flag offensive close merge delete

Comments

the action recognition model uses 3d convolutions, so can you try again with latest master ?

berak gravatar imageberak ( 2019-09-05 13:03:54 -0600 )edit

Do I need to build opencv from git repo, In have installed it using pip. Is this issue fixed?

zkumar gravatar imagezkumar ( 2019-09-05 21:43:52 -0600 )edit