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 can I run multiple TFLM models on an Spresense board?

    Spresense
    2
    2
    1599
    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.
    • J
      jayaprasadtj last edited by

      I'd like to run more than one TFLM models - one for person detection and another for audio classification - on the Spresense board. How can I run these models simultaneously ?

      K 1 Reply Last reply Reply Quote
      • K
        KamilTomaszewski DeveloperWorld @jayaprasadtj last edited by

        Hi @jayaprasadtj,

        You can try to initialize the 2 TFLM Runtime modules.

        It would look like this:

          ret = tflm_runtime_initialize(&rt1, network1, TFLM_TENSOR_ARENA_SIZE1);
          ret = tflm_runtime_initialize(&rt2, network2, TFLM_TENSOR_ARENA_SIZE2);
        

        I'm not sure if this will work.

        See https://github.com/sonydevworld/spresense/blob/master/examples/tflmrt_lenet/tflmrt_lenet_main.c#L283

        Best Regards,
        Kamil Tomaszewski

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