Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
.cm
README.md
armcl_graph_common.h
classification_demo.h
classify.cpp
image_helper.h
labels.txt
mobilenet.cpp
preprocess.py

README.md

Classification program for ArmCL

Requirements

ArmCL library

To build this program, you need ArmCL compiled with Graph API:

$ ck install package:lib-armcl-opencl-18.05 --env.USE_GRAPH=ON --env.USE_NEON=ON --extra_version=-graph

To build this program for Android you need to embedd kernels and select target API as follows:

$ ck install package:lib-armcl-opencl-18.05 --env.USE_GRAPH=ON --env.USE_NEON=ON --extra_version=-graph --env.USE_EMBEDDED_KERNELS=ON --env.DEBUG=ON --target_os=android23-arm64

NB: Use --target_os=android23-arm64 to build for Android API 23 (v6.0 "Marshmallow") or similar.

We have to embed kernels when building for Android as OpenCL kernel files are not copied to a remote device.

TODO: For some reason only debug version of the library can be used with this program on Android. When we use release version, the program gets stuck at stage "Preparing ArmCL graph".

Weights package

Install a package providing weights as NumPy array files:

$ ck install package:weights-mobilenet-v1-1.0-224-npy
$ ck install package --tags=mobilenet,weights,npy

Compile

$ ck compile program:armcl-classification-mobilenet [--target_os=android23-arm64]

Run

$ ck run program:armcl-classification-mobilenet [--target_os=android23-arm64]