cancel
Showing results for 
Search instead for 
Did you mean: 

how to generate the ll-aton runtime related files?

yiulsup
Associate II

Original title (over long): "using stedgeai, i can generate network.c/ network_data.c/ network_data_params.c, however, how can i generate the ll-aton runtime related files?"


Dear ST.

 

How can I generate the ll-aton runtime related file with my weight such as network.c, network_data.c, network_params.c? i already generate the above c files using stedgeai cli command.

I fine-tune the weight of yolov8n.pt with my dataset to best.pt and best.onnx. 

i can convert best.onnx to saved_models or h5, eventually tflite which includes quantization int8.

after that, using stedgeai cli, it is easy to me for generating the above c files. however  i can't generated aton related files. how can i generate the aton related files?

for the information, i use the stm32n657 nucleo board.

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

Hello @yiulsup,

 

To get atonn related files, you need to have a quantized model in int8, else, your model will be mapped in SW (software: MCU). And more importantly, you need to use this option in the generate command: --st-neural-art.

 

For example:

stedgeai generate -m model.onnx --target stm32n6 --st-neural-art

 

https://stedgeai-dc.st.com/assets/embedded-docs/stneuralart_getting_started.html 

 

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

Hello @yiulsup,

 

To get atonn related files, you need to have a quantized model in int8, else, your model will be mapped in SW (software: MCU). And more importantly, you need to use this option in the generate command: --st-neural-art.

 

For example:

stedgeai generate -m model.onnx --target stm32n6 --st-neural-art

 

https://stedgeai-dc.st.com/assets/embedded-docs/stneuralart_getting_started.html 

 

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.