Skip to main content
Associate III
September 27, 2023
Question

CUBE-AI 8.0 INTERNAL ERROR: list index out of range

  • September 27, 2023
  • 5 replies
  • 5256 views

STM32 CubeAI v1.7.0 (STM.ai v8.0.0-19389)
error: list index out of range

  • This is a model created and transformed using pytorch

    Alpha_Lee_0-1695801248993.png
    • Is the model too big?

5 replies

Issamos
Lead III
September 27, 2023

Hello @Alpha_Lee 

Can you rewrite your question in English for two reasons. First, English is the official language of the community. Also, our community members and experts can easily understand your question and answer it.

Best regards.

II

Alpha_LeeAuthor
Associate III
October 5, 2023

Yeah, you're right.I rewrote it.

fauvarque.daniel
ST Employee
October 3, 2023

Please share your model (could be with fake weights) so we can reproduce the issue.

The error you see is very likely a limitation in the current version of the tool, are you using 1D layers ?

Regards

Alpha_LeeAuthor
Associate III
October 5, 2023

The model size is 20M and I can't upload it. Is it because the model is too big?

fauvarque.daniel
ST Employee
February 16, 2024

try to zip it, alternatively you can share a link on this page

Thanks

 

Associate
February 16, 2024

Have you tried quantizing the model?

fauvarque.daniel
ST Employee
February 16, 2024

Issue reproduced on our current development branch, bug opened

fauvarque.daniel
ST Employee
February 28, 2024

mbg82, your test.onnx model is malformed, 

/SA/MatMul_1_output_0_DequantizeLinear has input [1x8], axis is 0, and x_scale is [8].

axis should be 1 (not 0)

Also onnxruntime gives an error

Regards

Daniel