当前位置:网站首页>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 :

边栏推荐
- How to choose an applet development enterprise
- Internet of things interoperability system: classification, standards and future development
- Realization of topic function
- Knowledge point 21 generic
- 弹出消息对话框的方法
- EIGamal cryptosystem description
- UNL class diagram
- Interpreting the knowledge in a neural network
- 深度学习(增量学习)——(ICCV)Striking a Balance between Stability and Plasticity for Class-Incremental Learning
- 二、OpenVINO简述与构建流程
猜你喜欢

Tf.keras build neural network function expansion

Prime_ Series range from detection to weight lifting

深度学习数据窃取攻击在数据沙箱模式下的威胁分析与防御方法研究阅读心得

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

51 single chip microcomputer independent key linkage nixie tube LED buzzer

无约束低分辨率人脸识别综述二:异构低分辨率人脸识别方法

Model Inversion Attacks that Exploit Confidence Informati on and Basic Countermeasures 阅读心得

Notes on the thinking of software analysis and library acquisition of a Taobao customer

ESXi 社区版网卡驱动

USB Network Native Driver for ESXi更新到支持ESXi7.0.1
随机推荐
2、 Openvino brief introduction and construction process
Basic usage of word2vec and Bert
Nsctf web Title writeup
Overview of unconstrained low resolution face recognition III: homogeneous low resolution face recognition methods
GF(2^8)的加法与乘法计算
Reinforcement learning - proximal policy optimization algorithms
基于直方图修改的可逆数字水印方法
硬件电路设计学习笔记2--降压电源电路
Why is the kotlin language not popular now? What's your opinion?
Protecting Against DNN Model Stealing Attacks 论文阅读心得
在Asp.net 中Cookie的用法
Nanjing University of Posts and Telecommunications CTF topic writeup (I) including topic address
神经网络实现鸢尾花分类
深度学习数据窃取攻击在数据沙箱模式下的威胁分析与防御方法研究阅读心得
What about the app store on wechat?
ESXi社区版网卡驱动再次更新
Interpreting the knowledge in a neural network
无约束低分辨率人脸识别综述三:同质低分辨率人脸识别方法
Model inversion attacks that exploit confidence information on and basic countermeasures
一、语音合成与自回归模型