Package: mindspore-lite
查看中文What Is MindSpore LiteMindSpore lite is a high-performance, lightweight open source reasoning framework that can be used to meet the needs of AI applications on mobile devices. MindSpore Lite focuses on how to deploy AI technology more effectively on devices. It has been integrated into HMS (Huawei Mobile Services) to provide inferences for applications such as image classification, object detection and OCR. MindSpore Lite will promote the development and enrichment of the AI software/hardware application ecosystem.For more details please check out ourMindSpore Lite Architecture Guide.MindSpore Lite featuresCooperative work with MindSpore trainingProvides training, optimization, and deployment.The unified IR realizes the device-cloud AI application integration.LightweightProvides model compress, which could help to improve performance as well.Provides the ultra-lightweight reasoning solution MindSpore Micro to meet the deployment requirements in extreme environments such as smart watches and headphones.High-performanceThe built-in high-performance kernel computing library NNACL supports multiple convolution optimization algorithms such as Slide window, im2col+gemm, winograde, etc.Assembly code to improve performance of kernel operators. Supports CPU, GPU, and NPU.VersatilitySupports IOS, Android.Supports Lite OS.Supports mobile device, smart screen, pad, and IOT devices.Supports third party models such as TFLite, CAFFE and ONNX.MindSpore Lite AI deployment procedureModel selection and personalized trainingSelect a new model or use an existing model for incremental training using labeled data. When designing a model for mobile device, it is necessary to consider the model size, accuracy and calculation amount.The MindSpore team provides a series of pre-training models used for image classification, object detection. You can use these pre-trained models in your application.The pre-trained model provided by MindSpore:Image Classification. More models will be provided in the feature.MindSpore allows you to retrain pre-trained models to perform other tasks.Model converter and optimizationIf you use MindSpore or a third-party model, you need to useMindSpore Lite Model Converter Toolto convert the model into MindSpore Lite model. The MindSpore Lite model converter tool provides the converter of TensorFlow Lite, Caffe, ONNX to MindSpore Lite model, fusion and quantization could be introduced during convert procedure.MindSpore also provides a tool to convert models running on IoT devices .Model deploymentThis stage mainly realizes model deployment, including model management, deployment, operation and maintenance monitoring, etc.InferenceLoad the model and perform inference.Inferenceis the process of running input data through the model to get output.MindSpore provides pre-trained model that can be deployed on mobile deviceexample.MindSpore Lite benchmark test resultWe test a couple of networks on HUAWEI Mate40 (Hisilicon Kirin9000e) mobile phone, and get the test results below for your reference.NetWorkThread NumberAverage Run Time(ms)basic_squeezenet46.415inception_v3436.767mobilenet_v1_10_22444.936mobilenet_v2_10_22443.644resnet_v2_50425.071