Ask Your Question

Revision history [back]

Error in reading onnx model (python)

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'