kivy / kivy/python-for-android
Finally I have Onnxruntime recipe
- Ngôn ngữ chính
- Python
- Star
- 8.9k
- Fork
- 2k
- Merge trung bình
- 12 giờ 20 phút
- Pull request đã merge (30 ngày)
- 9
Mô tả
## Background
- [Onnxruntime](https://onnxruntime.ai/) is an an open-source, high-performance inference engine that accelerates machine learning models in the Open Neural Network Exchange (ONNX) format.
- Building it for `android` was a huge challenge. I have followed some patterns from `termux-packages` & after many days of hit-n-try, I was able to build it.
## Custom recipe link
- Here is my [open-source project](https://github.com/daslearning-org/vision-ai) on `onnxruntime` & here is the [recipe link](https://github.com/daslearning-org/vision-ai/tree/main/onnx/p4a_local_recipes/onnxruntime) which builds the `cmake` part first & then it build the wheel.
- You can try my app from [releases](https://github.com/daslearning-org/vision-ai/releases).
## Constraints
- I am currently building on `numpy 1.26.5` due to #3203 issue as I also need `opencv` in my project.
- Another one is, currently it is built using `ndk 25b` and that problem is also written in the above mentioned issue.
### My thoughts
I'm not a build expert on cmake, wheel etc. I tried my best to make it work and I am sure that the developers can make it more robust.
> Please feel free to let me know your thoughts. Thank you
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by reviewing the custom recipe in daslearning-org/vision-ai at onnx/p4a_local_recipes/onnxruntime, including its CMake and wheel build steps, then read the constraints documented in issue #3203. Done means the Android recipe is reviewed for python-for-android and its build requirements and limitations are clearly addressed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- android, cmake, numpy, opencv, python
- Lĩnh vực
- build-system, machine-learning, mobile-dev
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100