深度学习领域常用的基于CPU/GPU的推理方式有OpenCV DNN、ONNXRuntime、TensorRT以及OpenVINO。这几种方式的推理过程可以统一用下图来概述。整体可分为模型初始化部分和推理部分,后者包括步骤2-5。 以GoogLeNet模型为例,测得几种推理方式在推理部分的耗时如下: 结论:GPU加速首选TensorRT;CPU加速首选OpenVINO;如果需要兼具CPU和GPU推理功能,可以选择ONNXRuntime。 下一篇内容:【模型部署 02】Python实现分类模型(以GoogLeNet为例)在OpenCV DNN、ONNXRuntime、TensorRT、OpenVINO上的推理部署 1.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with string
Contact string, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack