Skip to content

Commit

Permalink
use small libonnxruntime
Browse files Browse the repository at this point in the history
  • Loading branch information
gordinmitya committed Oct 15, 2020
1 parent 7ef51bd commit 996a5de
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Frameworks:
- [x] TFMobile Google [ver. 1.13.1](https://mvnrepository.com/artifact/org.tensorflow/tensorflow-android)
- [x] Pytorch Facebook [ver. 1.5.0](https://github.com/pytorch/pytorch/tree/master/android)
- [x] OpenCV DNN [ver. 4.4.0](https://github.com/opencv/opencv/releases/)
- [x] onnxruntime Microsoft [ver. 1.4.0](https://github.com/microsoft/onnxruntime/releases/)
- [x] onnxruntime Microsoft [ver. 1.4.0](https://github.com/microsoft/onnxruntime/releases/) [how to build](onnxruntime/README.md)
- [?] Mace by Xiaomi
- [ ] Tengine Lite OPEN AI LAB
- [ ] TNN Tencent
Expand Down
22 changes: 22 additions & 0 deletions onnxruntime/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
https://github.com/microsoft/onnxruntime.git

```bash
./build.sh --android \
--android_sdk_path $ANDROID_SDK \
--android_ndk_path $ANDROID_NDK \
--android_api 27 \
--use_nnapi \
--config MinSizeRel \
--build_shared_lib \
--parallel \
--android_abi armeabi-v7a
```
Pick up `build/Android/MinSizeRel/libonnxruntime.so`.

The same for `--android_abi arm64-v8a`.

https://github.com/microsoft/onnxruntime/blob/master/BUILD.md#android-build-instructions

https://github.com/microsoft/onnxruntime/blob/master/docs/ONNX_Runtime_for_Mobile_Platforms.md

Many thanks to Rohithkvsp for his repo https://github.com/Rohithkvsp/OnnxRuntimeAndorid
4 changes: 2 additions & 2 deletions onnxruntime/src/main/jniLibs/arm64-v8a/libonnxruntime.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions onnxruntime/src/main/jniLibs/armeabi-v7a/libonnxruntime.so
Git LFS file not shown

0 comments on commit 996a5de

Please sign in to comment.