kikirizki / pytorch_to_android-ncnn

Simple working example of pytorch model deployed on android device using ncnn
MIT License
8 stars 0 forks source link

Requires NCNN Library and OpenCV #2

Open dadin852 opened 1 year ago

dadin852 commented 1 year ago

step1 https://github.com/Tencent/ncnn/releases Download ncnn-YYYYMMDD-android-vulkan.zip or build ncnn for android yourself Extract ncnn-YYYYMMDD-android-vulkan.zip into app/src/main/jni and change the ncnn_DIR path to yours in app/src/main/jni/CMakeLists.txt

step2 https://github.com/nihui/opencv-mobile Download opencv-mobile-XYZ-android.zip Extract opencv-mobile-XYZ-android.zip into app/src/main/jni and change the OpenCV_DIR path to yours in app/src/main/jni/CMakeLists.txt

step3 Open this project with Android Studio, build it and enjoy!

Just like the instructions from : https://github.com/xiang-wuu/ncnn-android-yolov7.git

@kikirizki THANK YOU so much for the code!