当前位置:网站首页>【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
边栏推荐
- 实例030:回文数
- At age 94, pioneer Turing award winner, computational complexity theory, Juris Hartmanis, died
- 分离轴定理SAT凸多边形精确碰撞检测
- 【故障诊断分析】基于matlab FFT轴承故障诊断(包络谱)【含Matlab源码 2002期】
- 实验7 MPLS实验
- ADS通信--倍福PLC和C#TextBox控件实现数据绑定的方法
- See the picture to understand | How to choose sales indicators to measure the health of business growth
- 根据一个字段的内容去更新另一个字段的数据,这样的sql语句该怎么样书写
- MPLS的相关技术
- 张驰课堂:六西格玛测量系统的误差分析与判定
猜你喜欢

数据库概论之MySQL表的增删改查2

【故障诊断分析】基于matlab FFT轴承故障诊断【含Matlab源码 2001期】

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

论文《Deep Multifaceted Transformers for Multi-objective Ranking in Large-Scale E-commerce Recommender》

typescript ‘props‘ is declared but its value is never read 解决办法

About the local server problem after ue4.27 pixel streaming package

关于ue4.27像素流送打包后的本地服务器问题

How does abaqus quickly import the assembly of other cae files?
![[npm install error report collection] - npm ERR! code ENOTEMPTY npm ERR! syscall rmdir](/img/c5/2c42e26e577506573985b30669ca6c.png)
[npm install error report collection] - npm ERR! code ENOTEMPTY npm ERR! syscall rmdir

【npm install 报错问题合集】- npm ERR! code ENOTEMPTY npm ERR! syscall rmdir
随机推荐
有趣的网站
JS初识高阶函数和函数柯里化
mysql 注入
每周推荐短视频:为什么产品开发需要数字化?如何做到数字化?
实例030:回文数
Vscode连接远程服务器出现‘Acquiring lock on/home/~’问题
【机器学习】实验4布置:AAAI会议论文聚类分析
(Notes are not completed) [Graph Theory] Traversal of graphs
2022.07.31(LC_6132_使数组中所有元素都等于零)
yml字符串读取时转成数字了怎么解决
SimpleChannelInboundHandler使用总结
Unity Shader学习(七)纹理图像的简单使用
张驰课堂:六西格玛培训工具——箱线图
队列题目:无法吃午餐的学生数量
Day 4 of HCIP
Servlet
[npm install error report collection] - npm ERR! code ENOTEMPTY npm ERR! syscall rmdir
实验8 VLAN综合实验
振兴农村循环经济 和数链串起农业“生态链”
awk语法-01-基础语法(命令、选项、内部变量)
