cancel
Showing results for 
Search instead for 
Did you mean: 

No Effect Model Compression

ACapo
Associate II

I am trying to deploy a pre-trained Mobilenet model using STMCubeMX.ai, but I am facing some issue that I want to report.

Here the link of the project

https://github.com/alessandrocapotondi/mobilenet_stmcube_ai

Here the model I am using:

https://github.com/alessandrocapotondi/mobilenet_stmcube_ai/blob/master/keras_model/mobilenet_160_0_25.h5

For the model that I am using, the compression seems to have no effect:

  • None (1.79MB)

0690X0000089fb3QAA.png

  • Compression 4 (1.79MB)

0690X0000089fbrQAA.png

  • Compression 8 (1.79MB)

0690X0000089fbwQAA.png

Is it normal? There are any log that I can inspect to check what is going wrong?

PS: i will report another issue regarding the activation size on another topic.

1 ACCEPTED SOLUTION

Accepted Solutions
jean-michel.d
ST Employee

​Hello,

This is normal, because currently (X-CUBE-AI 3.4.0) the compression algorithm is only applied on the Dense layers. "mobilenet_160_0_25.h5" model have only the convulation layers. 

br,

Jean-Michel

View solution in original post

2 REPLIES 2
jean-michel.d
ST Employee

​Hello,

This is normal, because currently (X-CUBE-AI 3.4.0) the compression algorithm is only applied on the Dense layers. "mobilenet_160_0_25.h5" model have only the convulation layers. 

br,

Jean-Michel

Thanks, I miss such information!