Sign inSign up

randhawp/tflite_arm7

By randhawp

•Updated about 5 years ago

Image
0

485

randhawp/tflite_arm7 repository overview

⁠tflite_arm7

This should work on any arm7 processor - tested on Allwinner v536

From the docker env, copy the following files to the SD card

root@tina:/mnt/SDCARD# ls -la  *.so.*
-rwxr-xr-x    1 root     root       1347940 Jul  2  2021 ld-linux-armhf.so.3
-rwxr-xr-x    1 root     root      16537400 Jul  2  2021 libc.so.6
-rwxr-xr-x    1 root     root        225508 Jul  2  2021 libdl.so.2
-rwxr-xr-x    1 root     root       9063520 Jul  2  2021 libgcc_s.so.1
-rwxr-xr-x    1 root     root       6416640 Jul  2  2021 libm.so.6
-rwxr-xr-x    1 root     root       2742208 Jul  2  2021 libpthread.so.0
-rwxr-xr-x    1 root     root        424948 Jul  2  2021 librt.so.1
-rwxr-xr-x    1 root     root      11930116 Jul  2  2021 libstdc++.so.6

Also copy the /examples/label_image/label_image program

Copy the horse.bmp from this repo the sd card root Extract the .tflite and labels.txt from the attached .zip file

Execute following on the allwinner board

root@tina:/mnt/SDCARD# ./label_image -m mobilenet_quant_v1_224.tflite -l labels.
txt -i horse.bmp 
INFO: Loaded model mobilenet_quant_v1_224.tflite
INFO: resolved reporter
INFO: invoked
INFO: average time: 838.669 ms
INFO: 0.827451: 355 Arabian camel
INFO: 0.0705882: 973 cliff
INFO: 0.0509804: 604 horse cart
INFO: 0.00392157: 979 seashore
INFO: 0.00392157: 978 sandbar

Tag summary

Content type

Image

Digest

Size

2.4 GB

Last updated

about 5 years ago

docker pull randhawp/tflite_arm7