Skip to main content
Associate
January 2, 2025
Question

X-CUBE-AI 9.0.0: TOOL ERROR: Error in computation of shapes

  • January 2, 2025
  • 1 reply
  • 1069 views

Hello, ST community members, I am trying to port an onnx model to STM32H743VITx through X-CUBE-AI. When analyzing the network, the following error message appears:
"TOOL ERROR: Error in computation of shapes"

I don't know if it is because some layers in the network are not supported by the tool, or maybe because my network is two branches and then aggregated, but I can use the same single-branch model to pass the analysis. I uploaded my model structure in the form of a picture, hoping to get your help, thank you!

 

 

1 reply

Julian E.
Technical Moderator
January 6, 2025

Hello @lc_guo,

 

You can find the list of supported layers here:

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

 

Can you share your model in a .zip file please?

Else, can you open a git bash where stedgeai is located and type:

  1. _DEBUG=2
  2. ./stedgeai generate --target stm32h7 -m path_to_your_model.onnx

Then share the results.

 

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.
lc_guoAuthor
Associate
February 27, 2025

Hello @Julian E. , sorry to see your reply now.

I appreciate your reply, my model has been presented in the form of a zip package in the attachment, I am very much looking forward to your reply again!

Julian E.
Technical Moderator
March 13, 2025

Hello @lc_guo ,

 

Sorry for the late answer, I forgot to message you.

Using the version ST Edge AI Core v2.0.0-20049, when doing a generate, the model in the zip in your last message works.

 

You can check your version using the command: stedgeai.exe --version.

(it should be located in C:\Users\YOUR_USERNAME\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\10.0.0\Utilities\windows)

 

I think that you are using the X Cube AI GUI (which calls the stedgeai core in background).

If you still have issue, I would suggest to try to uninstall and install the X Cube AI and if it still not works ,then uninstall X Cube AI, then download the ST Edge AI Core () and download X Cube AI again.

 

This time, CubeAI will use the standalone version of ST Edge AI. In theory they are the same.

 

Tell me if you need anything, 
Have a good day.

​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.