learnopencv icon indicating copy to clipboard operation
learnopencv copied to clipboard

Cannot Parse ONNX model.

Open surajs52 opened this issue 3 years ago • 0 comments

Hey guys! I am using tensorrt 8. Tried to test the sample C++ script "trt_sample.cpp" for the provided "resnet50.onnx" model. I am getting the below error:

[libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format onnx2trt_onnx.ModelProto: 1:9: Message type "onnx2trt_onnx.ModelProto" has no field named "version". ModelImporter.cpp:682: Failed to parse ONNX model from file: resnet50.onnx ERROR: could not parse the model.

Can anyone help me with this?

surajs52 avatar Sep 30 '21 13:09 surajs52