Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
How to allocate more memory for IA models
-
Hello, I'm currently working on image classification model on spresense.
I managed to put it on the card but on the execution i face the classical :
Arena size is too small for all buffers. Needed 1215024 but only 270336 was available.I know how to deal with it, by increasing the allocation here :
constexpr int kTensorArenaSize = 300 * 1024;But my problem is that i can't increase it higher than approximately 650*1024. I'm aware the default value of ram size allocated for memory is 760 KB (as in Arduino). And in Arduino, i managed to increase it and so my model can fit in the card. But with the sdk i'm stucked.
I modified person_detection example from tflite to put mine.
Any ideas ?
Thanks
Simon -
This post is deleted! -
This post is deleted! -
Something wrong in my question ?
-
No, my bad. Don't worry.
I'll get back to you as soon as possible. -
Hey, @sisimonis-5-1-1
The thing is.. In the SDK, unless you have ASMP enabled, the default value of RAM size is 1536KB.
You can check if you have the ASMP config enabled and disable that. Or if you need it, then you can control the ASMP shared memory size with the ASMP_MEMSIZE config.