当前位置:网站首页>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
边栏推荐
- 昇腾体验官第五期随手记I
- 低代码平台中的数据连接方式(下)
- 一文读懂数仓中的pg_stat
- Wechat applet - Advanced chapter component packaging - Implementation of icon component (I)
- Es log error appreciation -trying to create too many buckets
- Applet directory structure
- Leetcode one question per day (636. exclusive time of functions)
- 什么是云原生?这回终于能搞明白了!
- Use case diagram
- PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight
猜你喜欢
AWS学习笔记(三)
Beginner JSP
多商户商城系统功能拆解01讲-产品架构
Substance Painter笔记:多显示器且多分辨率显示器时的设置
The longest ascending subsequence model acwing 1014 Mountaineering
【历史上的今天】7 月 7 日:C# 发布;Chrome OS 问世;《仙剑奇侠传》发行
The longest ascending subsequence model acwing 482 Chorus formation
Base64 encoding
拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条...
MicTR01 Tester 振弦采集模塊開發套件使用說明
随机推荐
MLGO:Google AI发布工业级编译器优化机器学习框架
因员工将密码设为“123456”,AMD 被盗 450Gb 数据?
Million data document access of course design
云上“视界” 创新无限 | 2022阿里云直播峰会正式上线
Mlgo: Google AI releases industrial compiler optimized machine learning framework
Instructions for mictr01 tester vibrating string acquisition module development kit
Oracle non automatic submission solution
Decrypt the three dimensional design of the game
The world's first risc-v notebook computer is on pre-sale, which is designed for the meta universe!
Use case diagram
2022云顾问技术系列之高可用专场分享会
小程序目录结构
Differences between cookies and sessions
JS get the current time, month, day, year, and the uniapp location applet opens the map to select the location
Ascend 910实现Tensorflow1.15实现LeNet网络的minist手写数字识别
华为云数据库DDS产品深度赋能
Introduction and use of Kitti dataset
在软件工程领域,搞科研的这十年!
C # use TCP protocol to establish connection
LeetCode 648. 单词替换