xmba15 / onnx_runtime_cpp

small c++ library to quickly deploy models using onnxruntime
MIT License
327 stars 49 forks source link

Hello, I need to get a fixed-size input-output model. When converting the loftr.onnx file, it can be converted successfully, but it is a verification model, and this error occurs. #46

Open yeluoo opened 1 year ago

yeluoo commented 1 year ago

Hello, I need to get a fixed-size input-output model. When converting the loftr.onnx file, it can be converted successfully, but it is a verification model, and this error occurs. nvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model from /data01/pot/onnx_runtime_cpp/scripts/loftr/loftr_static.onnx failed:This is an invalid model. Type Error: Type 'tensor(bool)' of input parameter (onnx::Mul_2835) of operator (Mul) in node (Mul_1875) is invalid.

herepost commented 4 months ago

I had the same problem.