当前位置:网站首页>Shengteng experience officer Episode 5 notes I
Shengteng experience officer Episode 5 notes I
2022-07-07 14:40:00 【Hua Weiyun】
First , The goal of the experience is Universal target detection
, The code is here .
By viewing the code documentation , Know shengteng AI The processor PCIe Working mode of
, Yes RC and EP Pattern . If PCIe Working in main mode , Can extend peripherals , It is called a RC Pattern ; If PCIe Working in slave mode , It is called a EP Pattern .
In a nutshell , Main mode (RC Pattern ) It's the whole package of shengteng processor ,CPU It did the work ,AI It also did the work .
From the mode, there are still CPU Do it CPU Own work .
The difference between the two , The following figure is very clear
There is another one CANN chart , You can also have a look at . That we use a lot ACL, It's on top .
Next, let's look at data preprocessing , Of this example Data entry type Can support pic video rtsp
.
Model | Enter the picture encoding format | Input image resolution |
---|---|---|
Image detection reasoning model be based on onnx Of yolov3 Model | BGR | 416*416 |
Vehicle color classification reasoning model be based on tensorflow Of CNN Model | RGB | 224*224 |
Then the input image required by this model , There will be a gap with the input pictures we usually give ( Format and resolution rate ), The process of dealing with the gap is pretreatment .
Pretreatment process :
- Because it is batch processing pictures , First open the folder where the pictures are stored
OpenPicsDir
- Then read in the picture
ReadPic
. For different picture types , Adopt different reading strategies , such asReadJpeg
andReadPng
The reading of the file itself is the same code , It is only the parsing of meta information of read file data , Use different methods :acldvppJpegGetImageInfo
andacldvppPngGetImageInfo
- Then decompress it to the original format and zoom it
ProcessPic
, For example, decompress it to YUV420SP_U8 Formatted data . It uses AclLite Class inAclLiteImageProc
OfJpegD
Method .AclLite It's right ACL Further encapsulation , Don't follow the details inside , You can go to Reference here .- Then zoom (reisze) To change the resolution , It uses AclLite Class in
AclLiteImageProc
OfProportionPasteCenter
Method , You need to give the target width and height . It's a bit of a mess …
- Then zoom (reisze) To change the resolution , It uses AclLite Class in
边栏推荐
- 用例图
- 2022pagc Golden Sail award | rongyun won the "outstanding product technology service provider of the year"
- AWS learning notes (III)
- In the field of software engineering, we have been doing scientific research for ten years!
- OAuth 2.0 + JWT protect API security
- 华为云数据库DDS产品深度赋能
- 一文读懂数仓中的pg_stat
- Multi merchant mall system function disassembly lecture 01 - Product Architecture
- Leetcode one question per day (636. exclusive time of functions)
- PyTorch模型训练实战技巧,突破速度瓶颈
猜你喜欢
Substance Painter筆記:多顯示器且多分辨率顯示器時的設置
Data connection mode in low code platform (Part 2)
2022PAGC 金帆奖 | 融云荣膺「年度杰出产品技术服务商」
OAuth 2.0 + JWT protect API security
多商户商城系统功能拆解01讲-产品架构
大厂做开源的五大痛点
Equipment failure prediction machine failure early warning mechanical equipment vibration monitoring machine failure early warning CNC vibration wireless monitoring equipment abnormal early warning
JSON解析实例(Qt含源码)
CVPR2022 | 医学图像分析中基于频率注入的后门攻击
什么是云原生?这回终于能搞明白了!
随机推荐
2022年13个UX/UI/UE最佳创意灵感网站
全球首款 RISC-V 笔记本电脑开启预售,专为元宇宙而生!
OAuth 2.0 + JWT 保护API安全
WPF DataGrid realizes the UI interface to respond to a data change in a single line
JSON解析实例(Qt含源码)
云上“视界” 创新无限 | 2022阿里云直播峰会正式上线
2022PAGC 金帆奖 | 融云荣膺「年度杰出产品技术服务商」
半小时『直播连麦搭建』动手实战,大学生技术岗位简历加分项get!
杭电oj2092 整数解
Emqx 5.0 release: open source Internet of things message server with single cluster supporting 100million mqtt connections
The longest ascending subsequence model acwing 1014 Mountaineering
Leetcode——344. 反转字符串/541. 反转字符串 II/151. 颠倒字符串中的单词/剑指 Offer 58 - II. 左旋转字符串
Webrtc audio anti weak network technology (Part 1)
数据库如何进行动态自定义排序?
数据湖(九):Iceberg特点详述和数据类型
Because the employee set the password to "123456", amd stolen 450gb data?
A laravel background management expansion package you can't miss - Voyager
Hangdian oj2054 a = = B? ???
Leetcode one question per day (636. exclusive time of functions)
Applet directory structure