当前位置:网站首页>Developers share mindspire Lite experience, one click image segmentation
Developers share mindspire Lite experience, one click image segmentation
2022-07-24 03:29:00 【Shengsi mindspire】

MindSpore Lite yes MindSpore The whole scene AI Framework of the End side engine , at present MindSpore Lite As Huawei HMS Core Reasoning engine base of machine learning service , has For the world 1000+ Applications provide inference engine services , Daily dosage exceed 3 Billion , At the same time in all kinds of mobile phones 、 Wearability perception 、 Zhihuiping and other equipment AI Features have been widely used .
MindSpore Lite 1.0.0 It was last year 9 Open source in June , After open source , Its interface is easy to use 、 Operator performance and completeness 、 The extensive support of the third party model , It has been widely recognized by many mobile application developers . at present ,1.0.0 The release has passed 3 Months , Abreast of the times MindSpore Lite 1.1.0 In operator performance optimization 、 Model miniaturization 、 Accelerator library auto tailoring tool 、 End to side model training 、 Voice class model supports 、Java The interface is open 、 Model visualization and other aspects have been comprehensively upgraded , The upgraded version is lighter 、 faster 、 Easier to use .
obtain 1.1.0 edition MindSpore Lite:
https://www.mindspore.cn/tutorial/lite/zh-CN/r1.1/use/downloads.html
Next, let's look at developers KAIKAI Share and use MindSpore Lite Experience .
MindSpore Lite Realize image segmentation
1、 Tutorial address :
https://www.mindspore.cn/tutorial/lite/zh-CN/master/quick_start/image_segmentation.html#
2、Android Studio Installation address :
https://developer.android.com/studio
3、 Download Image Segmentation image_segmentation Code engineering :
https://gitee.com/mindspore/mindspore/tree/master/model_zoo/official/lite/image_segmentation
4、 Open the project :

5、 After opening the project, you need to click install plugin Install the dependent plug-ins :

6、 During automatic construction , It will automatically download the dependent jar package :

7、 Some problems and solutions in the construction process :
a. Report errors :License for package Android SDK Build-Tools 30.0.1 not accepted.
resolvent : To Android\Sdk\tools\bin Execute under directory sdkmanager.bat --licenses
b. Download failed , Then download it manually , Reference resources download.gradle The script will mindspore-lite-1.1.0.aar Extract the file and put it in the corresponding directory ( The directory is also download.gradle Have a show )
https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.1.0/MindSpore/lite/release/android/mindspore-lite-1.1.0-inference-android.tar.gz
8、 Through engineering Build apk The results are as follows :

9、 The experience effect of installing mobile phones is as follows :( Replace an ID photo with Bright red background )

10、 The same photo , I casually searched a certificate photo online production tool on the Internet
(http://removebg.kmnbwa.cn/#/pc_index)
The background conversion effect is as follows :

11、 Summary and recommendations :
a. Through this end-to-end practice , I have a preliminary understanding Mindspore lite How to build and deploy the project in mobile applications , It's more convenient 、 shortcut ;
b. It is suggested to describe the actual application scenario of image segmentation , For example, the background replacement of ID photos is a typical application scenario .
边栏推荐
猜你喜欢

SolidWorks cannot reference references
![[JS reverse hundred examples] a public resource trading network, reverse analysis of announcement URL parameters](/img/0b/3645a0a8ec677f96427b35bd371e7e.png)
[JS reverse hundred examples] a public resource trading network, reverse analysis of announcement URL parameters

4. Hezhou air32f103_ LCD

What is the experience of writing concurrent tool classes (semaphore, cyclicbarrier, countdownlatch) by yourself in line 30?

什么是IMU?

JS 數組 isAarray() typeof

Basic syntax of MySQL DDL and DML and DQL

93. (leaflet chapter) leaflet situation plotting - modification of attack direction

A series of problems of dp+ backtracking segmentation palindrome string

数据湖:Apache Hudi简介
随机推荐
Svn: e00002: can't convert string from 'UTF-8' to native encoding problem solving
93. (leaflet chapter) leaflet situation plotting - modification of attack direction
Industrial controller, do you really know your five insurances and one fund?
Appendtofile append failed
[MySQL learning] install and use multiple versions of MySQL, MySQL 8 and MySQL 5.7 at the same time, compressed version
IO stream sorting
正則錶達式 \b \B 深入淺出理解單詞邊界的匹配
OSPF comprehensive experimental configuration
[interpolation expression of applet, rendering judgment, binding events and sharing]
Istio architecture extension mechanism
水题: 接雨水
uva1445
Huawei then responded to the rumor of "cleaning up employees over the age of 34". How can programmers cope with the "35 year old crisis"?
拉格朗日插值法
Realize the communication before two pages (using localstorage)
B. Eastern Exhibition- Codeforces Round #703 (Div. 2)
Programmers may still be programmers, and coders may only be coders
JMeter interview script
Test interview questions
Network parameter management