Cannot analyze ONNX model: INTERNAL ERROR: 'numpy.ndarray' object has no attribute 'get_shape_map'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-08 8:52 AM - edited ‎2024-11-19 3:55 PM
Hi all, I am trying to benchmark a TCN (causal cnn)-model on an STM32u5, however, when using any of the AI-Tools (online, CubeIDE or CLI), the analysis step fails with the output:
ST Edge AI Core v1.0.0-19894
INTERNAL ERROR: 'numpy.ndarray' object has no attribute 'get_shape_map'
Which is sadly not helpful. The model is attached, it was converted to onnx from pytorch (or rather fastai) using opset 13. It should take an input of 1x500x1 (bs x 1DSample x channels) and give an output of the same shape.
I would be happy to get any pointers on what I can do to fix this, thank you!
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-14 5:47 AM - edited ‎2024-11-18 1:02 AM
Hello @GfbGoesBrr ,
I have confirmed it is an error with the current public version of ST Edge AI Core. It is fixed in the upcoming version that should come out mid-December.
Unfortunately, you can't do anything until the new version of the ST Edge AI Core comes out...
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-14 5:47 AM - edited ‎2024-11-18 1:02 AM
Hello @GfbGoesBrr ,
I have confirmed it is an error with the current public version of ST Edge AI Core. It is fixed in the upcoming version that should come out mid-December.
Unfortunately, you can't do anything until the new version of the ST Edge AI Core comes out...
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-20 3:54 AM
Thank you for the effort!
I removed a somewhat custom part of the model definition, now it works already.
Side note: Giving the option to have more usefull logs would be appreciated, I tried setting the verbosity to different values but it does not change the behavior. Online and in Cube IDE the verbosity is always set to a specific level too, even if I try to overwrite it using the user flag field.
