当前位置:网站首页>3、 Openvino practice: image classification
3、 Openvino practice: image classification
2022-07-28 06:17:00 【Aaaaaki】
3、 ... and 、OpenVINO actual combat : Image classification
Task flow
Terminal initialization OpenVINO Environmental Science
Get into OpenVINO The installation directory , find setupvars.bat File and run , The results are shown in the following figure , That is, the initialization is successful .

Model acquisition and transformation
Call the model downloader and pass –print_all View the models available for download

adopt –name choice squeezenet1.1 Download the model , The results are shown in the following figure
- When downloading, if [Error 11004] getaddrinfo failed Tips , The reason lies in host Address by wall , Address raw.githubusercontent.com Add to host In the file .
- Can be found in –name Add –output_dir Specify download path

Through the model optimizer (model_optimizer) Convert the model to IR file
Get into OpenVINO The model optimizer folder under ./deployment_tools/model_optimizer , Because of the download squeezenet1.1 The model is caffe Model , So run mo_caffe.py File conversion .
python mo_caffe.py --input_model path --output_dir pathAfter running successfully, get the corresponding bin file and xml file

Image classification
Get ready squeezenet1.1 Label file for squeezenet1.1.labels, The file has been transferred to Baidu cloud
link :https://pan.baidu.com/s/17BCKqbTGusnzE5THNz_Spg
Extraction code :ysew
Get a simple classification example from the reasoning engine example
Copy ./OpenVINO/inference_engine/sample/python/classification_sample_async/ The next path classification_sample_async.py File to your exercise Catalog
Run the example , Specify the input image 、 Model 、 Label files and equipment , To get the results
python classification_samples_async.py -i image_path -m xml_path --labels label_path -d devices_nameInput the image as :

The final classification result is :

边栏推荐
- 一、语音合成与自回归模型
- Transformer's understanding
- D2sc-gan: low resolution face recognition of classroom scenes based on dual depth and shallow channel generation confrontation network
- Apache log4j arbitrary code execution replication
- Protecting Against DNN Model Stealing Attacks 论文阅读心得
- 硬件电路设计学习笔记2--降压电源电路
- 端接电阻详解 信号完整系列 硬件学习笔记7
- 深度学习(增量学习)——(ICCV)Striking a Balance between Stability and Plasticity for Class-Incremental Learning
- Tensorflow2.1 basic concepts and common functions
- Deep learning (incremental learning) -- iccv2021:ss-il: separated softmax for incremental learning
猜你喜欢

Reversible watermarking method based on difference expansion

Reinforcement learning - dqn in value learning

三、OpenVINO实战:图像分类

Reinforcement learning - Multi-Agent Reinforcement Learning

Adaface: quality adaptive margin for face recognition image quality adaptive edge loss for face recognition

ESXi 7.0 Update 1c中加入的systemMediaSize启动选项

Nanjing University of Posts and Telecommunications CTF topic writeup (I) including topic address

Deep learning pay attention to MLPs

Distributed cluster architecture scenario optimization solution: distributed scheduling problem

Basic usage of word2vec and Bert
随机推荐
Solution to the crash after setting up a cluster
基于选择性知识提取的野外低分辨率人脸识别的论文阅读笔记
CalendarExtender控件的中文显示问题
File upload vulnerability summary
Summary of common WAF interception pages
How much is wechat applet development cost and production cost?
Reinforcement learning - Multi-Agent Reinforcement Learning
LED发光二极管选型-硬件学习笔记3
1、 Amd - openvino environment configuration
Tornado first met
Which is more reliable for small program development?
51单片机独立按键联动数码管LED蜂鸣器
Addition and multiplication calculation of GF (2^8)
Reinforcement learning - Basic Concepts
Improved knowledge distillation for training fast lr_fr for fast low resolution face recognition model training
Deep learning (self supervision: simpl) -- a simple framework for contractual learning of visual representations
二、OpenVINO简述与构建流程
ESXi on Arm 10/22 更新
Boosting unconstrained face recognition with auxiliary unlabeled data to enhance unconstrained face recognition
Common CTF encryption methods JS