当前位置:网站首页>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
边栏推荐
- 属性关键字ServerOnly,SqlColumnNumber,SqlComputeCode,SqlComputed
- JS get the current time, month, day, year, and the uniapp location applet opens the map to select the location
- oracle 非自动提交解决
- 解析PHP跳出循环的方法以及continue、break、exit的区别介绍
- 安恒堡垒机如何启用Radius双因素/双因子(2FA)身份认证
- Notes de l'imprimante substance: paramètres pour les affichages Multi - écrans et multi - Résolutions
- Analysis of arouter
- C 6.0 language specification approved
- Instructions for mictr01 tester vibrating string acquisition module development kit
- The longest ascending subsequence model acwing 1012 Sister cities
猜你喜欢

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

OAuth 2.0 + JWT 保护API安全

OAuth 2.0 + JWT protect API security

Introduction and use of Kitti dataset

大厂做开源的五大痛点

Internal sort - insert sort

LeetCode每日一题(636. Exclusive Time of Functions)

全球首款 RISC-V 笔记本电脑开启预售,专为元宇宙而生!

Démontage de la fonction du système multi - Merchant Mall 01 - architecture du produit

Computer win7 system desktop icon is too large, how to turn it down
随机推荐
Hangdian oj2054 a = = B? ???
Five pain points for big companies to open source
ES日志报错赏析-- allow delete
Es log error appreciation -- allow delete
CVPR2022 | 医学图像分析中基于频率注入的后门攻击
ES日志报错赏析-trying to create too many buckets
Navigation — 这么好用的导航框架你确定不来看看?
Data connection mode in low code platform (Part 2)
Data Lake (IX): Iceberg features and data types
The world's first risc-v notebook computer is on pre-sale, which is designed for the meta universe!
Huawei cloud database DDS products are deeply enabled
Applet directory structure
STM32CubeMX,68套组件,遵循10条开源协议
Search engine interface
Small game design framework
OAuth 2.0 + JWT 保护API安全
比尔·盖茨晒48年前简历:“没你们的好看”
Es log error appreciation -maximum shards open
LeetCode 648. Word replacement
#yyds干货盘点# 解决名企真题:交叉线