Sony's Developer World forum

    • Home
    • Forum guidelines

    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

    Spresense
    2
    6
    1430
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sisimonis 5 1 1 last edited by

      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

      C 3 Replies Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @sisimonis 5 1 1 last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote
        • C
          CamilaSouza DeveloperWorld @sisimonis 5 1 1 last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote
          • S
            sisimonis 5 1 1 last edited by

            Something wrong in my question ?

            C 1 Reply Last reply Reply Quote
            • C
              CamilaSouza DeveloperWorld @sisimonis 5 1 1 last edited by

              @sisimonis-5-1-1

              No, my bad. Don't worry.
              I'll get back to you as soon as possible.

              1 Reply Last reply Reply Quote
              • C
                CamilaSouza DeveloperWorld @sisimonis 5 1 1 last edited by

                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.

                1 Reply Last reply Reply Quote
                • First post
                  Last post
                Developer World
                Copyright © 2021 Sony Group Corporation. All rights reserved.
                • Contact us
                • Legal