2025-03-01 6:39 AM - last edited on 2025-03-01 7:10 AM by Andrew Neil
HI!
I am newbie to CUBE AI.
I m working on implementing my CNN network that takes input image of 128,128,1 (greyscale) and give an output of 3 classes {class1,class2,class3}.
i did convert and try my model to TFLITE successfully on python.
then i went to stmcube and did put the model using X-CUBE-AI application template .
my problem is with
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;
}
my input buffer is like this
#define AI_NETWORK_IN_1_FORMAT (AI_BUFFER_FORMAT_FLOAT)
#define AI_NETWORK_IN_1_HEIGHT (128)
#define AI_NETWORK_IN_1_WIDTH (128)
#define AI_NETWORK_IN_1_CHANNEL (1)
#define AI_NETWORK_IN_1_SIZE (16384)
#define AI_NETWORK_IN_1_SIZE_BYTES (65536)
i tried putting image as image [128*128] and image[128][128]