The onnxruntime running process reports an error "onnxruntime::Model::Model Unknown model file format version"

background

I have been playing yolov6 these days, using yolov6 trained by the paddle framework, and then using paddl

Convert to onnx, and then use onnxruntime to predict the model. Since it is transferred on a linux server

The onnx model, and use it on the local windows computer, is probably such a situation

In the end, when the model was imported, an error was reported.

insert image description here

Causes and Solutions

When I encountered this problem, I was still confused. What is the situation? What is the Model Unknown model file?

format version, is it a version problem? With this doubt, I searched on the Internet, and I also encountered

Friends who have the same problem, refer to the Paddle detection model to switch to ONNX, and the onnxruntime reports an error .

The specific reason is the version of onnx and onnxruntime used in the environment of paddle to onnx

Both are higher than the local version, so it leads to an error of unrecognized version.

There are two solutions: 1) Reduce the onnx and onnxruntime in the onnx environment from paddle to onnx

version, and then re-transfer to the onnx model; 2) Upgrade the version of onnxruntime in the local yolov6 environment.

Supongo que te gusta

Origin blog.csdn.net/weixin_42280271/article/details/130147209
Recomendado
Clasificación