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

边栏推荐
- Which enterprises are suitable for small program production and small program development?
- Word2vec+ regression model to achieve classification tasks
- 机器学习之聚类
- Protecting Against DNN Model Stealing Attacks 论文阅读心得
- Nanjing University of Posts and Telecommunications CTF topic writeup (II) including topic address
- 基于差值扩展的可逆水印方法
- EIGamal cryptosystem description
- 监控安装ESXi on Arm的树莓派4b的CPU温度
- 深度学习(一):走进机器学习与深度学习理论部分
- 电快速脉冲群(EFT)设计-EMC系列 硬件设计笔记4
猜你喜欢

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

Deep learning (self supervision: simpl) -- a simple framework for contractual learning of visual representations

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

Using neural network to predict the weather

基于直方图修改的可逆数字水印方法

Overview of unconstrained low resolution face recognition II: heterogeneous low resolution face recognition methods

Reinforcement learning - Multi-Agent Reinforcement Learning

Reversible digital watermarking method based on histogram modification

How much does small program development cost? Analysis of two development methods!

ESXi 社区版网卡驱动
随机推荐
The difference and connection between cookies, sessions and tokens
深度学习(二)走进机器学习与深度学习编程部分
物联网互操作系统:分类、标准与未来发展方向综述
What should we pay attention to when making template application of wechat applet?
用于快速低分辨率人脸识别模型训练的改进知识蒸馏《Improved Knowledge Distillation for Training Fast LR_FR》
What are the general wechat applet development languages?
How much does it cost to make a small program mall? What are the general expenses?
How to choose an applet development enterprise
端接电阻详解 信号完整系列 硬件学习笔记7
Word2vec+ regression model to achieve classification tasks
ESXi社区版网卡驱动2022年3月更新
四、模型优化器与推理引擎
卷积神经网络
Reinforcement learning - continuous control
Deep learning - patches are all you need
EIGamal 密码体制描述
WebService出错 Maximum message size quota for incoming messages (65536) has been exceeded.已超过传入消息(655
Reinforcement learning - Strategic Learning
Tf.keras build neural network function expansion
浪涌冲击抗扰度实验(SURGE)-EMC系列 硬件设计笔记6