Skip to main content
Associate
Apr 9, 2025 4:33 PM UTC
Question

Unsupported Layers Update for Segment-Anything Models

We are aiming to deploy one of the more well-known CV models on an MCU, the segment-anything model by Facebook, but there are layers that are unsupported, and we can't exactly modify layers as it would greatly affect performance. Fortunately, time is not a concern for us in inference so the speed of the hardware is not a major challenge (as opposed to a GPU).

Is there some timeline or plan, or some way we can implement these layers ourselves internally?

LayerNormalization, MatMulInteger, DynamicQuantizeLinear, OneHot, ConvInteger, and Range

This topic has been closed for replies.

2 replies

Julian E.
ST Technical Moderator
Apr 10, 2025 3:47 PM UTC

Hello @junaidsiddiqui,

 

Sadly, it seems very complicated to do something here... It is too early to use your model I think with the ST Edge AI Core.

 

First, more and more layers are added as the stedgeai core is updated but I can't tell you the order or priority of which they are treated.

 

You can find the list of ONNX supported layers here:https://stedgeai-dc.st.com/assets/embedded-docs/supported_ops_onnx.html

 

It is maybe possible to replace the unsupported layers by equivalent operation using other supported layers. I am not sure that this is really possible. For example, for MatMulInteger, we support MatMul but only for float32 or QLinearMatMul but I don't know if it is the same.

 

It is probably a lot of work, and it will for sure have impact on the accuracy of the model..

 

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.
Associate
Apr 10, 2025 5:12 PM UTC

Hi Julian,

Thanks a bunch!

I've used alternative layer operations for other AI architectures I customized on my own which I can tolerate some model accuracy.

I'll try to investigate other avenues if the case is as you put it. Appreciate all your help, Thanks!