drp-ai
and the Edge Impulse SDK that contains the necessary function calls to the inferencing engine.
In order to benefit from the hardware acceleration provided by the RZ/V2L board we need to download the DRP-AI library from the deployment page. This will allow you to run your model efficiently on the RZ/V2L.
In the studio, we define the Impulse as a combination of any preprocessing code necessary to extract features from your raw data along with inference using your trained machine learning model. Similarly, in the drp-ai
, we provide the library with raw data from your sensor, and it will return the output of your model. It performs feature extraction and inference, just as you configured in the Edge Impulse Studio!
Currently, in the following tutorial, we are focusing on vision applications and will try to build an object detection app. We recommend working through the steps in this guide to see how to run the application on a Linux operating system. However, you can build the application using any operating system, but eventually you need to cross-compile the application with the Renesas SDK to make it work on the RZ/V2L.
DRP-Ai library option
drp-ai
library is to use raw features from one of your test set samples. When you run your program, it should print out the class probabilities that match those of the test sample in the Studio.
Create a directory to hold your project (e.g., my-project
). Unzip the drp-ai
library file into the project directory. Your directory structure should look like the following:
tflite-model/
directory. You will see the drp-ai
model that is going to be used by the Edge Impulse SDK to run this model on the hardware accelerator. If you do not find the file called drpai_model.h
then you have probably downloaded the C++ library or your build was not successful and it fell back to the normal library.
In order to build an app you need to use the same code that is described starting from the following section until the end of the tutorial.