AMB82-MINI on Edge Impulse

Has anyone ever know how to use AMB82-MINI on Edge Impulse?

Hi, thanks for trying ameba for your projects.

Edge Impulse doe support 3rd party embedded boards that compatible with Arduino.

Let us follow the steps to make use of the edge impulse.

1, we can make use of edge impulse to train the model we wanted. Then export the model.

  • note that the models need to convert before used by ameba, lets try study how to process the using-customized-nn-model first
  • At edge impulse, refer the following to export the model that have trained. In my case, I have trained mobilenetv2 for image classification. I prefer to use tensorflow lite file that supported by AMB82-mini lately. We just need to find the .tflite file.
  • Remember to check the model classes order, in my case is Cups, Keys, unknown
  • Also remember to download at least 1 image file from “image“ for future quantization, my case is “001.jpg“.

2, refer to the guide to convert NN model, it can be done both online/offline

3, use Arduino IDE to upload the model into board (recommended to use SD card)

  • some useful example guides

  • I tried this example Image Classification, refer to following for my setups

    • USE_MODEL_META_DATA_EN set to 0
    • select CUSTOMIZED_IMGCLASS_MOBILENETV2
    • change NNWIDTH and NNHEIGHT as 96
    • Update the class at ClassificationClass_list.h, in my case is Cups, Keys, unknown, use the same order get from the edge impulse export files.
    • select the SD card NN model mode at Arduino IDE
    • For SD card, create a folder NN_MDL , put the network_binary.nb file inside, and rename it as mobilenetv2_int16.nb
    • 005

    006

    • compile and upload firmware to AMB82-mini, refer to the guide for running and testing the NN application.