当前位置:网站首页>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
边栏推荐
- Hangdian oj2054 a = = B? ???
- leetcode:648. 单词替换【字典树板子 + 寻找若干前缀中的最短符合前缀】
- Multi merchant mall system function disassembly lecture 01 - Product Architecture
- 2022 cloud consulting technology series high availability special sharing meeting
- Attribute keywords ondelete, private, readonly, required
- Substance Painter笔记:多显示器且多分辨率显示器时的设置
- Because the employee set the password to "123456", amd stolen 450gb data?
- #yyds干货盘点# 解决名企真题:交叉线
- 云上“视界” 创新无限 | 2022阿里云直播峰会正式上线
- A laravel background management expansion package you can't miss - Voyager
猜你喜欢
Computer win7 system desktop icon is too large, how to turn it down
Use case diagram
今日睡眠质量记录78分
PyTorch模型训练实战技巧,突破速度瓶颈
Mrs offline data analysis: process OBS data through Flink job
CVPR2022 | 医学图像分析中基于频率注入的后门攻击
「2022年7月」WuKong编辑器更版记录
Five pain points for big companies to open source
EfficientNet模型的完整细节
Because the employee set the password to "123456", amd stolen 450gb data?
随机推荐
2022年13个UX/UI/UE最佳创意灵感网站
JS get the current time, month, day, year, and the uniapp location applet opens the map to select the location
The longest ascending subsequence model acwing 1012 Sister cities
多商戶商城系統功能拆解01講-產品架構
Substance Painter笔记:多显示器且多分辨率显示器时的设置
【愚公系列】2022年7月 Go教学课程 005-变量
Because the employee set the password to "123456", amd stolen 450gb data?
Oracle Linux 9.0 正式发布
Attribute keywords ondelete, private, readonly, required
Pytorch model trains practical skills and breaks through the bottleneck of speed
Search engine interface
Mmkv use and principle
属性关键字OnDelete,Private,ReadOnly,Required
Full details of efficientnet model
数据库如何进行动态自定义排序?
数据湖(九):Iceberg特点详述和数据类型
安恒堡垒机如何启用Radius双因素/双因子(2FA)身份认证
leetcode:648. 单词替换【字典树板子 + 寻找若干前缀中的最短符合前缀】
C # use TCP protocol to establish connection
【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例