当前位置:网站首页>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
边栏推荐
- 2022 cloud consulting technology series high availability special sharing meeting
- Oracle Linux 9.0 officially released
- Selenium Library
- 一个程序员的水平能差到什么程度?尼玛,都是人才呀...
- Navigation — 这么好用的导航框架你确定不来看看?
- 一文读懂数仓中的pg_stat
- Es log error appreciation -maximum shards open
- Oracle non automatic submission solution
- Attribute keywords ondelete, private, readonly, required
- Leetcode one question per day (636. exclusive time of functions)
猜你喜欢
MicTR01 Tester 振弦采集模块开发套件使用说明
Navigation — 这么好用的导航框架你确定不来看看?
因员工将密码设为“123456”,AMD 被盗 450Gb 数据?
小程序目录结构
What is cloud primordial? This time, I can finally understand!
Huawei cloud database DDS products are deeply enabled
Data connection mode in low code platform (Part 2)
Substance painter notes: settings for multi display and multi-resolution displays
Pandora IOT development board learning (HAL Library) - Experiment 12 RTC real-time clock experiment (learning notes)
leetcode:648. 单词替换【字典树板子 + 寻找若干前缀中的最短符合前缀】
随机推荐
Demis hassabis talks about alphafold's future goals
安恒堡垒机如何启用Radius双因素/双因子(2FA)身份认证
一款你不容错过的Laravel后台管理扩展包 —— Voyager
Selenium Library
Cvpr2022 | backdoor attack based on frequency injection in medical image analysis
PD虚拟机教程:如何在ParallelsDesktop虚拟机中设置可使用的快捷键?
课设之百万数据文档存取
LeetCode 648. Word replacement
在软件工程领域,搞科研的这十年!
Attribute keywords serveronly, sqlcolumnnumber, sqlcomputecode, sqlcomputed
Substance painter notes: settings for multi display and multi-resolution displays
ES日志报错赏析-trying to create too many buckets
JS get the current time, month, day, year, and the uniapp location applet opens the map to select the location
MicTR01 Tester 振弦采集模塊開發套件使用說明
JS in the browser Base64, URL, blob mutual conversion
Differences between cookies and sessions
回归测试的分类
Ascend 910实现Tensorflow1.15实现LeNet网络的minist手写数字识别
Leetcode one question per day (636. exclusive time of functions)
Multi merchant mall system function disassembly lecture 01 - Product Architecture