Skip to main content
Visitor II
March 18, 2024
Question

INTERNAL ERROR: Inconsistent in/out tensor shapes

  • March 18, 2024
  • 1 reply
  • 1279 views

Hello, I tried to convert my model using STM32Cube.AI Developer Cloud and on my pc STM32Cube AI at CubeMx. However, I got following error from stm32ai. Then I debug model with netron and realize that sizes are not matching with stm32ai library. How can i solve that issue? 

The layer image is 

ahmedbing_0-1710769465445.png

 

And output from STM32Cube.AI Developer:

>>> stm32ai analyze --model nanodet.onnx --allocate-inputs --allocate-outputs --compression none --optimization balanced --series stm32f4 --target stm32f4 --name network --workspace workspace --output output
Neural Network Tools for STM32 family v1.7.0 (stm.ai v8.1.0-19520)
INTERNAL ERROR: Inconsistent in/out tensor shapes in _head_Reshape_output_0_to_chlast_output: ['H: 32', 'W: 52', 'CH: 52'] and ['H: 33', 'CH: 2622'].

 

1 reply

fauvarque.daniel
ST Employee
July 17, 2024

The model is now passing on the developer cloud. 

You can use the command line STEdgeAI Core 1.0 and the model will pass

We will be soon releasing STM32Cube.AI 9.1 that will use STEdgeAI core 1.0 for NN conversion