当前位置:网站首页>【CV】OpenVINO安装教程
【CV】OpenVINO安装教程
2022-08-02 06:43:00 【Fannnnf】
本教程是为yolov5s配置openvino,其他网络仅供参考
0. 官方安装教程和要求
官网安装教程链接https://docs.openvino.ai/cn/latest/openvino_docs_install_guides_installing_openvino_windows.html
安装要求:
其中python要求3.6-3.8,可以用anaconda新建一个虚拟环境安装python3.7

1.在官网下载openvino_toolkit
官网下载链接:https://www.intel.com/content/www/us/en/developer/tools/openvino-toolkit/download.html
注意这里要下载2021版本的,如果安装了2020版本,在使用openvino将.onnx转换为IR文件时,执行命令python mo.py --input_model=best.onnx --output_dir=Myonnx_IR --model_name=yolowheel --scale=255 --data_type=FP16可能会出现类似下面的错误
[ ERROR ] operands could not be broadcast together with shapes (4,) (0,)
[ ERROR ]
[ ERROR ] It can happen due to bug in custom shape infer function <function UpsampleOp.upsample_infer at 0x000001BEBC1976A8>.
[ ERROR ] Or because the node inputs have incorrect values/shapes.
[ ERROR ] Or because input shapes are incorrect (embedded to the model or passed via --input_shape).
[ ERROR ] Run Model Optimizer with --log_level=DEBUG for more information.
[ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID" (<class 'extensions.middle.PartialInfer.PartialInfer'>): Stopped shape/value propagation at "Resize_118" node.
For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #38.
根据https://www.51sjk.com/b70b281860/猜测可能是2020版本的openvino还不支持yolov5中的部分算子
2.下载完成后直接打开文件
如果在安装过程中出现闪退问题,是系统不兼容导致,在文件属性中开启兼容模式,开启后再次打开即可
- 一直点击next即可,可以修改安装路径
- 可能出现一些警告,直接next即可

- 安装完成

3.配置环境变量
按下图配置环境变量,注意路径需要换成自己对应的安装路径
如果提示环境变量过长,可以在系统环境变量中按上图的内容输入OpenVINO路径,四个路径用分号分隔,然后在系统变量中的Path中添加 %OpenVINO%,如下图

4.配置Model Optimizer
进入目录D:\Program\intel\openvino_2021\deployment_tools\model_optimizer\install_prerequisites(根据自己的安装路径对应)
打开cmd,激活anaconda环境(python3.6-3.8),cmd中执行install_prerequisites.bat命令运行。
等待安装完成。
5.运行demo
进入目录D:\Program\intel\openvino_2021\deployment_tools\demo
在anaconda环境中运行demo_security_barrier_camera.bat
参考:
https://blog.csdn.net/qq_41251963/article/details/121406569
https://blog.csdn.net/m0_57055443/article/details/122747401
YOLOv5转openvino并进行部署
https://blog.csdn.net/gcf_uinque/article/details/105827378
https://blog.csdn.net/weixin_42586726/article/details/125198259
边栏推荐
- 技术管理三级跳
- (Part of it is not understood, and the notes are not completed) [Graph Theory] Difference Constraints
- 【机器学习】实验6布置:基于集成学习的Amazon用户评论质量预测
- Gradle系列——Gradle插件(基于Gradle文档7.5)day3-2
- 新产品立大功 伟世通第二季度营收双增
- CAT1 4G+Ethernet development board Tencent cloud mobile phone WeChat applet display temperature and delivery control
- Swagger的简单介绍,集成,以及如何在生产环境中关闭swagger,在测试和开发环境中自动打开
- 宝塔+FastAdmin 404 Not Found
- PHP Warning: putenv() has been disabled for security reasons in phar
- _2_顺序表
猜你喜欢
![WebGPU 导入[2] - 核心概念与重要机制解读](/img/8f/195a3b04912d8872d025df58ab5960.png)
WebGPU 导入[2] - 核心概念与重要机制解读

PMP新考纲考试内容介绍

【图像去噪】基于matlab双立方插值和稀疏表示图像去噪【含Matlab源码 2009期】

CAT1 4G+Ethernet development board Tencent cloud mobile phone WeChat applet display temperature and delivery control

堡垒机、堡垒机的原理

MQ带来的一些问题、及解决方案

(笔记整理未完成)【图论】图的遍历

【请教】SQL语句按列1去重来计算列2之和

论文阅读 (64):Weakly-supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning

PWA 踩坑 - 第一次加载页面后无法获取CacheStorage某些资源
随机推荐
2022夏暑假每日一题(六)
【机器学习】实验2布置:基于回归分析的大学综合得分预测
2022.07.31(LC_6133_分组的最大数量)
2022年8月计划,着重ue4视频教程
宝塔+FastAdmin 404 Not Found
Connection reset by peer 问题解析
线程的创建方式
abaqus如何快速导入其他cae文件的assembly?
Two good php debug tutorials
【暑期每日一题】洛谷 P3156 【深基15.例1】询问学号
返回文件名问题
【请教】SQL语句按列1去重来计算列2之和
【论文精读】Geometric Structure Preserving Warp for Natural Image Stitching
交换--STP协议
【npm install 报错问题合集】- npm ERR! code ENOTEMPTY npm ERR! syscall rmdir
论文《Deep Multifaceted Transformers for Multi-objective Ranking in Large-Scale E-commerce Recommender》
技术管理三级跳
Submit code process
punch day05
SQL执行顺序
