当前位置:网站首页>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 asReadJpegandReadPngThe reading of the file itself is the same code , It is only the parsing of meta information of read file data , Use different methods :acldvppJpegGetImageInfoandacldvppPngGetImageInfo - Then decompress it to the original format and zoom it
ProcessPic, For example, decompress it to YUV420SP_U8 Formatted data . It uses AclLite Class inAclLiteImageProcOfJpegDMethod .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
AclLiteImageProcOfProportionPasteCenterMethod , 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
边栏推荐
- Selenium Library
- 【历史上的今天】7 月 7 日:C# 发布;Chrome OS 问世;《仙剑奇侠传》发行
- Assign a dynamic value to the background color of DataGrid through ivalueconverter
- Base64 encoding
- Oracle Linux 9.0 officially released
- Search engine interface
- 小程序目录结构
- 内部排序——插入排序
- 属性关键字ServerOnly,SqlColumnNumber,SqlComputeCode,SqlComputed
- Reading and understanding of eventbus source code
猜你喜欢

Selenium Library
![[server data recovery] a case of RAID data recovery of a brand StorageWorks server](/img/8c/77f0cbea54730de36ce7b625308d2f.png)
[server data recovery] a case of RAID data recovery of a brand StorageWorks server

Introduction and use of Kitti dataset

Notes de l'imprimante substance: paramètres pour les affichages Multi - écrans et multi - Résolutions

什么是云原生?这回终于能搞明白了!

因员工将密码设为“123456”,AMD 被盗 450Gb 数据?

LeetCode 648. Word replacement

Pandora IOT development board learning (HAL Library) - Experiment 12 RTC real-time clock experiment (learning notes)

多商戶商城系統功能拆解01講-產品架構

Instructions for mictr01 tester vibrating string acquisition module development kit
随机推荐
Instructions for mictr01 tester vibrating string acquisition module development kit
ES日志报错赏析-trying to create too many buckets
The longest ascending subsequence model acwing 1012 Sister cities
大厂做开源的五大痛点
Applet directory structure
杭电oj2054 A == B ? ???
Search engine interface
Ian Goodfellow, the inventor of Gan, officially joined deepmind as research scientist
Pinduoduo lost the lawsuit, and the case of bargain price difference of 0.9% was sentenced; Wechat internal test, the same mobile phone number can register two account functions; 2022 fields Awards an
Source code analysis of ArrayList
Use case diagram
半小时『直播连麦搭建』动手实战,大学生技术岗位简历加分项get!
Substance Painter笔记:多显示器且多分辨率显示器时的设置
Pert diagram (engineering network diagram)
Because the employee set the password to "123456", amd stolen 450gb data?
GAN发明者Ian Goodfellow正式加入DeepMind,任Research Scientist
Cascading update with Oracle trigger
Instructions d'utilisation de la trousse de développement du module d'acquisition d'accord du testeur mictr01
在软件工程领域,搞科研的这十年!
2022 cloud consulting technology series high availability special sharing meeting