当前位置:网站首页>一、AMD - OpenVINO环境配置
一、AMD - OpenVINO环境配置
2022-07-28 05:23:00 【Aaaaaki】
一、AMD - OpenVINO环境配置
1. 环境
| 硬件环境 | 软件环境 |
|---|---|
| Ryzen 5800X | Visual Studio 2022 |
| Win 10 | Python 3.7.13 + Cmake 3.24.0 + Anaconda |
依赖环境配置
Visual Studio 为 2022版本

CMake安装
官网下载最新版本CMake,建议选择msi安装,比较省事。
官网下载速度巨慢,建议去镜像

2. 离线下载OpenVINO-Toolkit
如图下载离线安装包

运行exe文件安装Toolkit组件,一路NEXT即可。


闪退问题
经测试,5800X + Win 10 环境下安装组件时会出现闪退问题,此情况为系统不兼容所致,需开启兼容模式

安装完成后,会自动弹出官网引导初始化界面,关闭即可。
3. Anaconda 安装OpenVINO
创建Anaconda虚拟环境,Python版本设置为3.7.13

运行命令安装OpenVINO,建议选择2021.4.2版本,最新版2022存在OpenCV问题。
pip install openvino-dev[pytorch]==2021.4.2
运行ie.available_device命令

4. PyCharm 配置OpenVINO
在PyCharm终端中切换至步骤3中创建的Anaconda虚拟环境

PyCharm中打开终端,进入步骤2中OpenVINO安装路径下运行setupvars.bat文件,弹出Python版本,以及OpenVINO environment initialized ,说明初始化OpenVINO成功

初始化完成后,终端运行face-detection.py,生成out.png后即可


目前OpenVINO存在问题,每次启动都需重新运行bat文件进行初始化后才能正常运行。
5. 加载OpenVINO踩坑
运行face-detection.py文件
python face-detection.py
若出现上述错误,可能是由于opencv没有cmake导致,可尝试下列命令解决
pip install opencv-python-inference-engine个人OpenCV版本:
anaconda 终端运行
pip list | findstr open*,结果如下图所示
若出现下述错误,是由于pip中OpenCV异常且未初始化OpenVINO导致,我自己是未离线安装OpenVINO Toolkit组件,直接在Anaconda envs环境中pip install openvino-dev会出现这种情况。此时重新运行OpenVINO.exe离线安装包,并初始化即可。我自己是未离线安装OpenVINO Toolkit组件,直接在Anaconda envs环境中pip install openvino-dev会出现这种情况。此时重新运行OpenVINO.exe离线安装包,并初始化即可

边栏推荐
- Utils commonly used in NLP
- KubeSphere安装版本问题
- Applet development
- Reinforcement learning - dqn in value learning
- 机群作业管理系统,求解答进程方面的疑问
- Using neural network to predict the weather
- pytorch深度学习单卡训练和多卡训练
- 小程序开发系统有哪些优点?为什么要选择它?
- How much is wechat applet development cost and production cost?
- Word2vec+ regression model to achieve classification tasks
猜你喜欢

word2vec和bert的基本使用方法

Knowledge point 21 generic

神经网络学习

Latex入门

How much is wechat applet development cost and production cost?

无约束低分辨率人脸识别综述三:同质低分辨率人脸识别方法

Reinforcement learning - dqn in value learning

微信上的小程序店铺怎么做?

Installing redis under Linux (centos7)

What are the points for attention in the development and design of high-end atmospheric applets?
随机推荐
强化学习——不完全观测问题、MCTS
基于选择性知识提取的野外低分辨率人脸识别的论文阅读笔记
Sqlalchemy usage related
vscode uniapp
深度学习——Pay Attention to MLPs
3: MySQL master-slave replication setup
TensorFlow2.1基本概念与常见函数
深度学习(自监督:SimSiam)——Exploring Simple Siamese Representation Learning
神经网络优化
微信小程序开发语言一般有哪些?
深度学习(自监督:SimCLR)——A Simple Framework for Contrastive Learning of Visual Representations
NLP中基于Bert的数据预处理
利用辅助未标记数据增强无约束人脸识别《Boosting Unconstrained Face Recognition with Auxiliary Unlabeled Data》
Dataset class loads datasets in batches
速查表之转MD5
Uniapp WebView listens to the callback after the page is loaded
【7】 Consistency between redis cache and database data
Distributed cluster architecture scenario optimization solution: distributed scheduling problem
【2】 Redis basic commands and usage scenarios
tensorboard可视化