You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added Python Express API implemented with pbind11
- Added demos for Python Express API
- Performance improvements for ARM64, ARMv8.2, x86.
- README update.
MNN is a lightweight deep neural network inference engine. It loads models and do inference on devices. At present, MNN has been integrated in more than 20 apps of Alibaba-inc, such as Taobao, Tmall, Youku and etc., covering live broadcast, short video capture, search recommendation, product searching by image, interactive marketing, equity distribution, security risk control and other scenarios. In addition, MNN is also used on embedded devices, such as IoT.
6
+
MNN is a highly efficient and lightweight deep learning framework. It supports inference and training of deep learning models, and has industry leading performance for inference and training on-device. At present, MNN has been integrated in more than 20 apps of Alibaba Inc, such as Taobao, Tmall, Youku, Dingtalk, Xianyu and etc., covering more than 70 usage scenarios such as live broadcast, short video capture, search recommendation, product searching by image, interactive marketing, equity distribution, security risk control. In addition, MNN is also used on embedded devices, such as IoT.
7
+
8
+
The design principles and performance data of MNN has been published in an MLSys 2020 paper [here](https://proceedings.mlsys.org/static/paper_files/mlsys/2020/7-Paper.pdf). Please cite MNN in your publications if it helps your research:
9
+
10
+
@inproceedings{alibaba2020mnn,
11
+
author = {Jiang, Xiaotang and Wang, Huan and Chen, Yiliu and Wu, Ziqi and Wang, Lichuan and Zou, Bin and Yang, Yafeng and Cui, Zongyang and Cai, Yu and Yu, Tianhang and Lv, Chengfei and Wu, Zhihua},
12
+
title = {MNN: A Universal and Efficient Inference Engine},
13
+
booktitle = {MLSys},
14
+
year = {2020}
15
+
}
16
+
17
+
## Documentation
18
+
MNN's docs are in placed in [Yuque docs here](https://www.yuque.com/mnn/en).
19
+
20
+
## Key Features
21
+
### High performance
22
+
- Implements core computing with lots of optimized assembly code to make full use of the ARM CPU.
23
+
- For iOS, GPU acceleration (Metal) can be turned on, which is faster than Apple's native CoreML.
24
+
- For Android, `OpenCL`, `Vulkan`, and `OpenGL` are available and deep tuned for mainstream GPUs (`Adreno` and `Mali`).
25
+
- Convolution and transposition convolution algorithms are efficient and stable. The Winograd convolution algorithm is widely used to better symmetric convolutions such as 3x3 -> 7x7.
26
+
- Twice speed increase for the new architecture ARM v8.2 with FP16 half-precision calculation support.
9
27
10
-
## Features
11
28
### Lightweight
12
29
- Optimized for devices, no dependencies, can be easily deployed to mobile devices and a variety of embedded devices.
13
30
- iOS platform: static library size for armv7+arm64 platforms is about 5MB, size increase of linked executables is about 620KB, and metallib file is about 600KB.
14
31
- Android platform: core so size is about 400KB, OpenCL so is about 400KB, Vulkan so is about 400KB.
15
32
16
33
### Versatility
17
34
- Supports `Tensorflow`, `Caffe`, `ONNX`, and supports common neural networks such as `CNN`, `RNN`, `GAN`.
18
-
-Supports 86 `Tensorflow`ops, 34 `Caffe`ops; MNN ops: 71 for CPU, 55 for Metal, 29 for OpenCL, and 31 for Vulkan.
35
+
-MNN model converter supports 149 `Tensorflow`OPs, 58 `TFLite` OPs, 47 `Caffe`OPs and 74 `ONNX` OPs; Number of OPs by different MNN hardware backends: 111 for CPU, 6 for ARM V8.2, 55 for Metal, 43 for OpenCL, and 32 for Vulkan.
19
36
- Supports iOS 8.0+, Android 4.3+ and embedded devices with POSIX interface.
20
-
- Supports hybrid computing on multiple devices. Currently supports CPU and GPU. GPU op plugin can be loaded dynamically to replace default (CPU) op implementation.
37
+
- Supports hybrid computing on multiple devices. Currently supports CPU and GPU.
21
38
22
-
### High performance
23
-
- Implements core computing with lots of optimized assembly code to make full use of the ARM CPU.
24
-
- For iOS, GPU acceleration (Metal) can be turned on, which is faster than Apple's native CoreML.
25
-
- For Android, `OpenCL`, `Vulkan`, and `OpenGL` are available and deep tuned for mainstream GPUs (`Adreno` and `Mali`).
26
-
- Convolution and transposition convolution algorithms are efficient and stable. The Winograd convolution algorithm is widely used to better symmetric convolutions such as 3x3 -> 7x7.
27
-
- Additional optimizations for the new architecture ARM v8.2 with half-precision calculation support.
28
-
29
-
### Easy to use
39
+
### Ease of use
30
40
- Efficient image processing module, speeding up affine transform and color space transform without libyuv or opencv.
31
41
- Provides callbacks throughout the workflow to extract data or control the execution precisely.
32
42
- Provides options for selecting inference branch and paralleling branches on CPU and GPU.
43
+
- (BETA) MNN Python API helps ML engineers to easily use MNN to build a model, train it and quantize it, without dipping their toes in C++ code.
33
44
34
45
## Architecture
35
46

@@ -40,48 +51,23 @@ Converter consists of Frontends and Graph Optimize. The former is responsible fo
40
51
41
52
Interpreter consists of Engine and Backends. The former is responsible for the loading of the model and the scheduling of the calculation graph; the latter includes the memory allocation and the Op implementation under each computing device. In Engine and Backends, MNN applies a variety of optimization schemes, including applying Winograd algorithm in convolution and deconvolution, applying Strassen algorithm in matrix multiplication, low-precision calculation, Neon optimization, hand-written assembly, multi-thread optimization, memory reuse, heterogeneous computing, etc.
42
53
43
-
## Paper
44
-
Please cite MNN in your publications if it helps your research:
45
-
46
-
@inproceedings{alibaba2020mnn,
47
-
author = {Jiang, Xiaotang and Wang, Huan and Chen, Yiliu and Wu, Ziqi and Wang, Lichuan and Zou, Bin and Yang, Yafeng and Cui, Zongyang and Cai, Yu and Yu, Tianhang and Lv, Chengfei and Wu, Zhihua},
48
-
title = {MNN: A Universal and Efficient Inference Engine},
Scan the following QR codes to join Dingtalk discussion group. The group discussions are predominantly Chinese. But we welcome and will help English speakers.
0 commit comments