onnxruntime安装

opencv dnn onnx 性能优化有时能达到16-10倍,但是cpu占用较高

opencv的对平均池化,上采样不支持,可能是onnx版本低,比如11

 

onnxruntime优化本身能达到10-14倍,cpu占用稍微低一点

onnxruntime-1.1.1

pip install onnxruntime # CPU build

pip install onnxruntime-gpu # GPU build

 

下载地址,支持32位,是动态库,不是python的

https://www.ctolib.com/article/releases/119310

这个也有x86的

https://github.com/Microsoft/onnxruntime/releases/tag/v1.1.0

c++调用demo:

https://github.com/microsoft/onnxruntime/blob/master/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests.Capi/CXX_Api_Sample.cpp

你可能感兴趣的:(onnx)