STM32CubeAI Application template: Change input type
Hello,
I'm new to C and STM32 deployment. I am developing a ML model that I would like to run on a STM32F446RE board. I'm using STM32CubeIDE 1.14.0 and X-Cube-AI 8.1.0. I followed the first steps to add the model, Analyze and Validate on desktop and on target.
After that, I'd like to develop my own application to calculate inferences with real-time data. So I used "ApplicationTemplate" when I added X-Cube-AI to the project. I saw that I needed to complete the acquire_and_process_data function to be able to add my own data:
int acquire_and_process_data(ai_i8* data[])
{
/* fill the inputs of the c-model
for (int idx=0; idx < AI_NETWORK_IN_NUM; idx++ )
{
data[idx] = ....
}
*/
return 0;
}
The problem is that my data is of type float but I need data of type int8_t. How do I get float input?
Also, I haven't found any documentation or an example of how to complete the template, does anyone have an example?
Thanks in advance!
