2023-09-27 12:57 AM - edited 2023-10-04 06:13 PM
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
Is the model too big?
2023-09-27 01:18 AM
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
2023-10-03 02:24 AM
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
2023-10-04 06:15 PM
Yeah, you're right.I rewrote it.
2023-10-04 06:18 PM
The model size is 20M and I can't upload it. Is it because the model is too big?
2024-02-15 09:11 PM
Have you tried quantizing the model?
2024-02-16 12:54 AM
Hello @fauvarque.daniel ,
can you explain the current limitation of the tool? I'm also facing issues when loading quantized onnx model created with pytorch (LSTM model). Getting following error in my case (both developer cloud and CubeMX :(
Neural Network Tools for STM32 family v1.7.0 (stm.ai v8.1.0-19520)
INTERNAL ERROR: create_layer() missing 2 required positional arguments: 'formats' and 'shapes'
Regards
2024-02-16 12:59 AM
try to zip it, alternatively you can share a link on this page
Thanks
2024-02-16 01:01 AM
Can you also share the onnx model.
2024-02-16 03:04 AM
@fauvarque.daniel thanks for quick support!