cancel
Showing results for 
Search instead for 
Did you mean: 

Error "Unexpected combination of configuration and input shape" analyzing 6-D ONNX model

BCPH357
Associate II

Hello ST team,

I am currently trying to deploy an rPPG (remote photoplethysmography) model to the STM32N6 using the ST Edge AI Developer Cloud.
My model’s input tensor has the following 6-dimensional shape:

(B, 8, 3, 36, 36, 3)
  • B = batch size

  • 8 = temporal frames

  • 3 = feature channels

  • 36x36 = spatial resolution

  • 3 = RGB channels

I uploaded a fully quantized ONNX model (int8_qdq.onnx) through the web UI and ran Analyze using a custom profile.
However, the analysis fails with the following error:

 

 
ST Edge AI Core v2.2.0-20266 2adc00962 
WARNING: Unsupported keys in the current profile n6-allmems-O3 are ignored: memory_desc 
 > memory_desc is not a valid key anymore, use machine_desc instead 
INTERNAL ERROR: Unexpected combination of configuration and input shape
 

To help reproduce the issue, I have attached my ONNX model file along with this post.

My questions are:
1.
Does the current ST Edge AI Core / Developer Cloud support 6-D input tensors?

(e.g., models with multiple temporal + spatial + channel dimensions)
2.
If not directly supported, what is the recommended way to reshape or flatten such inputs so that they can be processed by the toolchain?3.Are there any references or documentation describing the maximum supported tensor rank for model inputs on STM32N6?

Thank you very much for your help.
Looking forward to your guidance.

BCPH357

2 REPLIES 2
Julian E.
ST Employee

Hi @BCPH357,

 

I opened an internal ticket to solve this. But the first comment is that 5D is the maximum.

looking at the onnx generated by ONNX simplifier (attached) the first reshape reduces dimension from 6 to 4 but the first (batch size) is larger than 1. First 3 convolutions are batched, i.e., batch size is larger than 1. In order to be supported this should be split into parallel convolution sharing the weights. After there is a reshape whose output has batch size of 1 so the rest of the model should be ok (to be verified).

 

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.

Hello Julian,

Thank you very much for the quick response and for generating the simplified ONNX model.

I tested the provided simplified_model.onnx on the ST Edge AI Developer Cloud.
However, the Analyze step still fails with the following error:

 

 
ST Edge AI Core v2.2.0-20266 2adc00962 INTERNAL ERROR: Unexpected combination of configuration and input shape

I used the default settings for STM32N6 in the web UI, and I also verified with the CLI using:

 


stedgeai analyze --model simplified_model.onnx \ --allocate-inputs --allocate-outputs \ --optimization balanced \ --target stm32n6 \ --name network

Both UI and CLI produce the same internal error.

Since you mentioned that 5D is the maximum supported input rank, I assume the issue is still related to either:

1. the remaining reshape sequence,

2. the batched convolutions in the early layers, or

3. the overall input dimension configuration that the simplified model still carries.

Could you please advise on the following?

  1. Is there an additional transformation needed to make the simplified ONNX model compatible (e.g., manually splitting the first few batched convolutions into parallel 2D convolutions as you mentioned)?

  2. Would you recommend that I manually flatten or reorder dimensions before exporting the ONNX model, so that the input becomes 4D/5D before entering any convolution?

  3. Is there a known constraint on reshape patterns that could still trigger this internal error, even when the model is reduced to ≤5D?

I have attached the error logs and can also provide the exact workflow or additional intermediate ONNX files if needed.

Thank you again for your assistance—your help is greatly appreciated.

Best regards,
BCPH357