| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| model/ | H | 05-Jun-2025 | - | |||
| src/ | H | 05-Jun-2025 | - | 1,520 | 1,135 | |
| CMakeLists.txt | H A D | 05-Jun-2025 | 4 KiB | 141 | 110 | |
| README.md | H A D | 05-Jun-2025 | 2.3 KiB | 77 | 56 | |
| build-android_RK3562.sh | H A D | 05-Jun-2025 | 739 | 36 | 25 | |
| build-android_RK3566_RK3568.sh | H A D | 05-Jun-2025 | 739 | 36 | 25 | |
| build-android_RK3588.sh | H A D | 05-Jun-2025 | 739 | 36 | 25 | |
| build-linux_RK3562.sh | H A D | 05-Jun-2025 | 464 | 26 | 16 | |
| build-linux_RK3566_RK3568.sh | H A D | 05-Jun-2025 | 464 | 26 | 16 | |
| build-linux_RK3588.sh | H A D | 05-Jun-2025 | 464 | 26 | 16 |
README.md
1The following <TARGET_PLATFORM> represents RK356X or RK3588. 2# Aarch64 Linux Demo 3## Build 4 5modify `GCC_COMPILER` on `build-linux_<TARGET_PLATFORM>.sh` for target platform, then execute 6 7``` 8./build-linux_<TARGET_PLATFORM>.sh 9``` 10 11## Install 12 13Copy install/rknn_api_demo_Linux and ../rknn_mobilenet_demo/model/ to the devices. 14 15- If you use rockchip's evb board, you can use the following way: 16 17Connect device and push the program and rknn model to `/userdata` 18 19``` 20adb push install/rknn_api_demo_Linux /userdata/ 21adb push ../rknn_mobilenet_demo/model/ /userdata/rknn_api_demo_Linux 22``` 23 24- If your board has sshd service, you can use scp or other methods to copy the program and rknn model to the board. 25 26## Run 27 28``` 29adb shell 30cd /userdata/rknn_api_demo_Linux/ 31``` 32 33``` 34export LD_LIBRARY_PATH=./lib 35./rknn_create_mem_demo model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg 36./rknn_create_mem_with_rga_demo model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg 37``` 38 39# Android Demo 40## Build 41 42modify `ANDROID_NDK_PATH` on `build-android_<TARGET_PLATFORM>.sh` for target platform, then execute 43 44``` 45./build-android_<TARGET_PLATFORM>.sh 46``` 47 48## Install 49 50connect device and push build output into `/data` 51 52``` 53adb push install/rknn_api_demo_Android /data/ 54adb push ../rknn_mobilenet_demo/model/ /userdata/rknn_api_demo_Android 55``` 56 57## Run 58 59``` 60adb shell 61cd /data/rknn_api_demo_Android/ 62``` 63 64``` 65export LD_LIBRARY_PATH=./lib 66./rknn_create_mem_demo model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg 67./rknn_create_mem_with_rga_demo model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg 68./rknn_with_mmz_demo model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg 69./rknn_set_internal_mem_from_fd_demo model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg 70./rknn_set_internal_mem_from_phy_demo model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg 71``` 72 73# Note 74 - You may need to update libmpimmz.so and its header file of this project according to the implementation of MMZ in the system. 75 - You may need to update librga.so and its header file of this project according to the implementation of RGA in the system. https://github.com/airockchip/librga. 76 For rk3562, the librga version need to be 1.9.1 or higher. 77 - You may need to use r19c or older version of ndk for compiling with MMZ related demo.