当前位置:网站首页>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
边栏推荐
- ES日志报错赏析-maximum shards open
- Pandora IOT development board learning (HAL Library) - Experiment 12 RTC real-time clock experiment (learning notes)
- Substance painter notes: settings for multi display and multi-resolution displays
- Substance Painter筆記:多顯示器且多分辨率顯示器時的設置
- 半小时『直播连麦搭建』动手实战,大学生技术岗位简历加分项get!
- 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
- Demis hassabis talks about alphafold's future goals
- Differences between cookies and sessions
- 大厂做开源的五大痛点
- Simple steps for modifying IP of sigang electronic scale
猜你喜欢

Full details of efficientnet model

CVPR2022 | 医学图像分析中基于频率注入的后门攻击

设备故障预测机床故障提前预警机械设备振动监测机床故障预警CNC震动无线监控设备异常提前预警

数据湖(九):Iceberg特点详述和数据类型

Data connection mode in low code platform (Part 2)

The world's first risc-v notebook computer is on pre-sale, which is designed for the meta universe!

Mrs offline data analysis: process OBS data through Flink job

用例图

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

Substance painter notes: settings for multi display and multi-resolution displays
随机推荐
《微信小程序-进阶篇》组件封装-Icon组件的实现(一)
MRS离线数据分析:通过Flink作业处理OBS数据
6. Electron borderless window and transparent window lock mode setting window icon
ES日志报错赏析-- allow delete
2022PAGC 金帆奖 | 融云荣膺「年度杰出产品技术服务商」
Leetcode——236. 二叉树的最近公共祖先
Use case diagram
Introduction and use of Kitti dataset
Million data document access of course design
属性关键字ServerOnly,SqlColumnNumber,SqlComputeCode,SqlComputed
The longest ascending subsequence model acwing 1014 Mountaineering
大厂做开源的五大痛点
Cascading update with Oracle trigger
ES日志报错赏析-trying to create too many buckets
Demis Hassabis谈AlphaFold未来目标
Substance Painter笔记:多显示器且多分辨率显示器时的设置
UML state diagram
Emqx 5.0 release: open source Internet of things message server with single cluster supporting 100million mqtt connections
PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight
关于后台动态模板添加内容的总结 Builder使用