当前位置:网站首页>Technical dry goods | top speed, top intelligence and minimalist mindspore Lite: help Huawei watch become more intelligent
Technical dry goods | top speed, top intelligence and minimalist mindspore Lite: help Huawei watch become more intelligent
2022-06-26 23:50:00 【Shengsi mindspire】

Shengsi MindSpore Lite yes MindSpore The whole scene AI The end side engine of the frame , at present MindSpore Lite As Huawei HMS Core、 Hongmeng 、 Operator, 、 The reasoning engine base of machine learning service for embedded devices in the energy field , For the world 4000+ Applications provide inference engine services , Daily average adjustment amount exceeds 7 Billion , At the same time in all kinds of mobile phones 、 Wearability perception 、 Wisdom screen 、 Smart watches and others IoT The equipment AI Features have been widely used . In this paper, MindSpore Lite In Huawei smart watches WATCH Application on , You are also welcome to publish a website based on MindSpore Lite Application .
Use MindSpore Lite The advantages of
Ultimate performance
Efficient kernel algorithm and assembly level optimization , Support CPU、GPU、NPU Heterogeneous scheduling , Maximize hardware computing power , Minimize reasoning delay and power consumption .
Lightweight
Provide ultra lightweight solutions , Support model Quantization Compression , The model is smaller and faster , Can make AI Deployment execution under the extreme environment of the model .
Full scene support
Support iOS、Android And other mobile operating systems LiteOS Embedded operating system , Support for mobile phones 、 screen 、 Flat 、IoT And other intelligent devices AI application .
Efficient deployment
Support MindSpore/TensorFlow Lite/Caffe/Onnx Model , Provide model compression 、 Data processing and other capabilities , Unified training and reasoning IR, Convenient for users to deploy quickly .
Use MindSpore Lite workflow
Choose a model : Select a new model or retrain an existing model
Transformation model : Use tools to transform models into end-to-end models that are easy to deploy
Deploy the application : Introduce the model into the application , And load it into mobile or embedded devices
Learning links :https://www.mindspore.cn/lite/docs/zh-CN/master/quick_start/quick_start.html#id2

obtain MindSpore Lite The latest version :
Learn about and download MindSpore Lite:
https://www.mindspore.cn/lite/docs/zh-CN/r1.5/use/downloads.html


● In life AI ●
MCU The full name is Microcontroller Unit, In Chinese, it can be called micro controller or single chip microcomputer .MCU It can be used in automotive electronics 、 Industrial control and other fields , It can also be used in small and low-power devices . There are billions of Internet of things in the world (IOT) equipment , As big as a sweeping robot 、 The microwave oven 、 Loudspeaker box , As small as a watch 、 Bracelet 、 Electric toothbrush, etc , Cannot leave MCU.MCU Not only undertake computing tasks , It can also be extended to access many peripherals , For example, keys 、 Microphone 、 The speaker 、 Cameras and sensors, etc , Realize the interaction with the surrounding environment . Even five years ago , Most of the MCU Small devices don't have intelligence . In recent years , With Deep neural network technology Rapid development of , There is TinyML Subdivision of .TinyML( Micro machine learning ) It means machine learning or Deep learning Scenarios applied to micro devices . Simply speaking , It means in MCU On the equipment AI Model training and reasoning . With TinyML, Even a small device can be intelligent , No need to rely on expensive hardware or reliable internet transmission .TinyML Another advantage of is privacy protection , All operations are done locally , No need to send any data to the cloud side .
● Practical problems ●
Smart watches are another important product of Huawei's consumer business besides mobile phones , It's also typical MCU equipment . Huawei in 2015 The first smart watch was released in . Since the first two generations of watches were released , I often receive feedback from users that I don't have a good experience with the function of raising my wrist and brightening the screen , For example, there is a large time delay when the screen is on 、 Probability of non illumination and false illumination , These problems also indirectly lead to the reduction of the watch's endurance time , Impact on Huawei brand reputation . There are many reasons for the long-term existence of this problem , For example, traditional algorithms were used in the early days ( Not deep learning ); It uses the reasoning framework of friends , Because the framework does not MCU Optimize the equipment , Cause program ROM and RAM High occupancy , This is for resource constrained MCU For equipment , There's no doubt that it's worse . in addition , The computational performance of the framework operator is poor , The reasoning delay is also large , Finally, the time delay of screen lightening is large .
● Solution ●
2020 year , Huawei's self-developed in-depth learning framework MindSpore Official open source . As an excellent full scene AI frame , Shengsi MindSpore It also provides for TinyML Model end-to-end deployment capability . Shengsi MindSpore The training framework allows users to get started quickly AI application , Simply and efficiently train your own AI Model . and MindSpore Lite for Micro As an ultra lightweight AI Inference engine , Let users easily deploy their own TinyML Model .MindSpore Lite for Micro The core idea is “ Model is code ”, According to the target hardware CPU Architecture 、 Memory condition , With low power consumption 、 High performance and no third-party dependency are the optimization objectives , Generate exclusive and efficient reasoning code for each model .

The program is divided into Host and Device Two phases . stay Host Stage , We will be right. AI The model performs various operator transformations and graph optimization operations , Significantly reduce redundant computing , Strive to achieve the optimal reasoning performance on the target hardware . The model here doesn't just mean MindSpore Model of , It also supports other mainstream model formats , such as TF、TFLITE、ONNX and CAFFE etc. . We also support quantification after training , The implementation model is smaller 、 Reasoning is faster .Device Stage , Users need to cross compile the generated object source code , Deploy to target hardware . While we generate the code , Supplied with CMake The construction of , It greatly facilitates user integration ; about IDE Integrated users , We also provide operating instructions on the official website .
● help Watch3 Endurance improvement ●

2021 year 6 month 2 Japan ,HarmonyOS And Huawei's all scene new product launch , As Huawei's flagship smart watch WATCH 3 Official release . This product has built-in us MindSpore Lite for Micro Ultra light weight AI engine , The false screen lightening is reduced 50%、 The endurance is improved in the super long endurance mode 1.2 God 、ROM and RAM Excellent results with significantly reduced occupancy , It has achieved good market evaluation and user reputation . Behind the solution to the long-term problem of wrist lifting and bright screen for watch users , yes MindSpore Lite for Micro in the light of MCU Accurate positioning of equipment . First , It is the ultimate in model miniaturization , Greatly reduce the amount of code through model optimization and code tailoring , To reduce ROM The space occupied by . secondly , It improves memory block reuse through code optimization , Thereby reducing RAM Space occupation . Last , Based on open source CMSIS-NN Operator library for convolution operator optimization , Further improve performance , Reduce delay .
● Conclusion ●
MindSpore Lite Ultra light weight AI The engine not only helps Huawei Watch3, On the smart screen 、 Intelligent speakers 、 Bluetooth headset 、 Many Huawei, such as printers IOT It can be found on the equipment . future , We will also help the Internet of things and AI The industry is moving towards success , Use MindSpore Lite for Micro Ultra light weight AI Engine Implementation “ Model is code ”, Can make IOT The equipment AI Ability , Give Way AI Wisdom is everywhere .
If you need to know more about this MCU Model deployment tool , Please visit the official website :
https://www.MindSpore.cn/Lite/docs/zh-CN/r1.5/use/Micro.html
边栏推荐
- 入侵痕迹清理
- Why don't I recommend going to sap training institution for training?
- Implement the queue through two stacks
- 低佣金免费开户渠道安全吗?
- 论文学习——降雨场次划分方法对降雨控制率的影响分析
- Pinpoint attackers with burp
- 买基金在哪里开户买比较安全
- Crawler and Middleware of go language
- 手机上可以开户炒股吗 网上开户炒股安全吗
- Understanding of "the eigenvectors corresponding to different eigenvalues cannot be orthogonalized"
猜你喜欢
![[micro service]nacos](/img/69/6641e943c4366d5591acdf9e12389c.png)
[micro service]nacos

The client implements client Go client type definition connection

Safe and cost-effective payment in Thailand

Let agile return to its original source -- Some Thoughts on reading the way of agile neatness

让敏捷回归本源——读《敏捷整洁之道》有感

DAST black box vulnerability scanner part 5: vulnerability scanning engine and service capability

用户在hander()goroutine,添加定时器功能,超时则强踢出

浅谈分布式系统开发技术中的CAP定理

Outside the code: writing is the best way to force growth

从位图到布隆过滤器,C#实现
随机推荐
Installing MySQL on Ubuntu
Development and learning route of golang language
【710. 黑名单中的随机数】
Extensions de l'éditeur d'unityeditor - fonctions de table
[microservice]eureka
为什么EDR需要深度防御来打击勒索软件?
手机炒股靠谱吗 网上开户炒股安全吗
50 tips that unity beginners can definitely use
go语言的服务发现、存储引擎、静态网站
Leetcode skimming 4 Find the median of two positive arrays
有哪些劵商推荐?现在在线开户安全么?
Operator介绍
微信小程序自动生成打卡海报
go语言中的私聊功能处理
客户端实现client.go客户端类型定义连接
Can I open an account for stock trading on my mobile phone? Is it safe to open an account for stock trading on the Internet
How to open an account on the mobile phone? Is it safe to open an account online and speculate in stocks
颜色搭配和相关问题
互联网行业,常见含金量高的证书,看看你有几个?
A simple and crude method for exporting R language list to local