1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/pkg_cmsis-nn
2020-10-06 17:11:26 +02:00
..
tests tests/pkg_cmsis-nn: add cifar10 example application 2020-02-14 16:23:41 +01:00
generate_image.py tests/pkg_cmsis-nn: add cifar10 example application 2020-02-14 16:23:41 +01:00
input tests/pkg_cmsis-nn: add cifar10 example application 2020-02-14 16:23:41 +01:00
main.c tests/pkg_cmsis-nn: add cifar10 example application 2020-02-14 16:23:41 +01:00
Makefile tests/pkg_cmsis-nn: update doc for support for Cortex-M33 2020-10-06 17:11:26 +02:00
parameter.h tests/pkg_cmsis-nn: add cifar10 example application 2020-02-14 16:23:41 +01:00
README.md tests/pkg_cmsis-nn: add cifar10 example application 2020-02-14 16:23:41 +01:00
weights.h tests/pkg_cmsis-nn: add cifar10 example application 2020-02-14 16:23:41 +01:00

ARM CMSIS-NN package

This application shows how to use the neural network API provided by the ARM CMSIS package in order to determine the type of "object" present in an RGB image. The image are part of the SIFAR10 dataset which contains 10 classes of objects: plane, car, cat, bird, deer, dog, frog, horse, ship and truck.

Expected output

Predicted class: cat

Change the input image

Use the generate_image.py script and the -i option to generate a new input image. For example, the following command

./generate_image.py -i 1

will generate an input containing an image with a boat.

The generated image is displayed at the end of the script execution, for visual validation of the prediction made by the neural network running on the device.

Note that each time a new image is generated, the firmware must be rebuilt so that it embeds the new image.