cancel
Showing results for 
Search instead for 
Did you mean: 

Error while analyzing my deep learning model(.h5) in stm32 mx (board used is nucleo-h753zi)

Pinagadi_Meghana
Associate III

Could you please check if the attached .h5 model has anything wrong...
It is not analyzing and always producing error...
If anything is wrong... please correct it and resend please


Analyzing model 
C:/Users/surya/STM32Cube/Repository/Packs/STMicroelectronics/X-CUBE-AI/10.0.0/Utilities/windows/stedgeai.exe analyze --target stm32h7 --name network -m C:/Users/surya/Downloads/updated_cnn.h5 --compression none --verbosity 1 --workspace C:/Users/surya/AppData/Local/Temp/mxAI_workspace1320364323860015601918210486046641 --output C:/Users/surya/.stm32cubemx/network_output 
ST Edge AI Core v2.0.0-20049 
E010(InvalidModelError): Couldn't load Keras model C:\Users\surya\Downloads\updated_cnn.h5, 
Error when deserializing class 'InputLayer' using config={'batch_shape': [None, 128, 1], 'dtype': 'float32', 'sparse': False, 'name': 'input_layer_11'}. 
Exception encountered: Unrecognized keyword arguments: ['batch_shape']

3 REPLIES 3
Julian E.
ST Employee

Hello @Pinagadi_Meghana,

 

There is probably something wrong happening during the conversion due to the input shape of your model.

I'll check and update you once I find the issue.

 

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.

Okay mam...
PLease update me as soon as possible

Hello @Pinagadi_Meghana ,

 

Keras3 is not currently supported but it will be in the next release of the ST Edge AI Core.

JulianE_0-1742984959743.jpeg

So either use a compatible version of keras

https://stedgeai-dc.st.com/assets/embedded-docs/supported_ops_keras.html 

Or wait for next release (I think it should be updated in April)

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.