cancel
Showing results for 
Search instead for 
Did you mean: 

ROM overflowed with over 3000 kB tflite models on ISPU

konaukko
Associate

I am testing a tflite model on the ISPU, using the following hardware:

NUCLEO-F401RE + X-NUCLEO-IKS4A1

I downloaded the x-cube-ispu repo and imported the template_stedgeai example to STM32CubeIDE. Finally i generate the network library with:

 

 

stedgeai generate --target ispu --no-workspace --no-report -m /path/to/model.tflite --output .

 

 

 

Everything works perfectly fine with networks under 3000 kB. If the network has over 3000 parameters (quantized to int8) I get:

ispu_stedgeai.elf section `.rodata' will not fit in region `ROM'

region `ROM' overflowed by X bytes

The 3000 sounds way too small as the ISPU has 32kB of ROM. Is there something I need to do in order to enable bigger models sizes or am I doing something wrong?

I attached the output of the "stedgeai generate" and my main.c for context. The output from the file, gave: "region `ROM' overflowed by 2596 bytes" when building in STM32CubeIDE.

 

1 REPLY 1
Lorenzo BRACCO
ST Employee

Hello, could you please share your tflite model so that we can perform an analysis of what is occupying the space in ROM? You can also share it with me via private message if you cannot post it here.

Thanks!