当前位置:网站首页>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
边栏推荐
- Analysis of arouter
- 半小时『直播连麦搭建』动手实战,大学生技术岗位简历加分项get!
- 华为云数据库DDS产品深度赋能
- 低代码平台中的数据连接方式(下)
- Leetcode——344. 反转字符串/541. 反转字符串 II/151. 颠倒字符串中的单词/剑指 Offer 58 - II. 左旋转字符串
- MicTR01 Tester 振弦采集模块开发套件使用说明
- Similarities and differences between switches and routers
- 用例图
- 找到自己的价值
- The longest ascending subsequence model acwing 1012 Sister cities
猜你喜欢

Five pain points for big companies to open source

Cvpr2022 | backdoor attack based on frequency injection in medical image analysis

Webrtc audio anti weak network technology (Part 1)

leetcode:648. 单词替换【字典树板子 + 寻找若干前缀中的最短符合前缀】

「2022年7月」WuKong编辑器更版记录

LeetCode 648. Word replacement

Pytorch model trains practical skills and breaks through the bottleneck of speed

Multi merchant mall system function disassembly lecture 01 - Product Architecture

一个程序员的水平能差到什么程度?尼玛,都是人才呀...

KITTI数据集简介与使用
随机推荐
Navigation — 这么好用的导航框架你确定不来看看?
【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例
Wechat applet - Advanced chapter component packaging - Implementation of icon component (I)
云上“视界” 创新无限 | 2022阿里云直播峰会正式上线
Pandora IOT development board learning (HAL Library) - Experiment 12 RTC real-time clock experiment (learning notes)
解析PHP跳出循环的方法以及continue、break、exit的区别介绍
安恒堡垒机如何启用Radius双因素/双因子(2FA)身份认证
KITTI数据集简介与使用
2022pagc Golden Sail award | rongyun won the "outstanding product technology service provider of the year"
Leetcode——236. The nearest common ancestor of binary tree
electron remote 报错
JS get the current time, month, day, year, and the uniapp location applet opens the map to select the location
Pytorch model trains practical skills and breaks through the bottleneck of speed
Webrtc audio anti weak network technology (Part 1)
潘多拉 IOT 开发板学习(HAL 库)—— 实验12 RTC实时时钟实验(学习笔记)
Demis hassabis talks about alphafold's future goals
Démontage de la fonction du système multi - Merchant Mall 01 - architecture du produit
WPF DataGrid realizes the UI interface to respond to a data change in a single line
The method of parsing PHP to jump out of the loop and the difference between continue, break and exit
ES日志报错赏析-maximum shards open