cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment of multiple Neural Networks on STM32n6

ShiLiba
Associate II

Hello! Has anyone tried to deploy multiple neural networks on a stm32n6 at once? I'm developing an application which requires 5 NN. I created 5 .c libraries to deploy each NN on the NPU, I assume is because of the APIs that they overlap. So I'm curious if anyone has tried this and how it was solved.

My last  option is to create a bigger models that contains all 5 on onnx, then deploy it, idk if someone knows if this could work to. 

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

Hi @ShiLiba,

 

I think that using a single model might be easier indeed.

 

To use multiple models you need to use the --name option when doing the generate, by default the model name is "network". If all your models are named "network" it will never compile because of multiple define references.

Then, you need to put all weights at different places in memory (by playing with the memorypool files and profiles) and to make sure that all 5 models fit in the code. Nothing fancy.

 

We don't have documentation about that specifically, but you should find some help about the general concept:

https://stedgeai-dc.st.com/assets/embedded-docs/index.html#neural-art-accelerator-target

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Julian E.
ST Employee

Hi @ShiLiba,

 

I think that using a single model might be easier indeed.

 

To use multiple models you need to use the --name option when doing the generate, by default the model name is "network". If all your models are named "network" it will never compile because of multiple define references.

Then, you need to put all weights at different places in memory (by playing with the memorypool files and profiles) and to make sure that all 5 models fit in the code. Nothing fancy.

 

We don't have documentation about that specifically, but you should find some help about the general concept:

https://stedgeai-dc.st.com/assets/embedded-docs/index.html#neural-art-accelerator-target

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.