Skip to main content
ACapo
Associate II
April 2, 2019
Solved

No Effect Model Compression

  • April 2, 2019
  • 1 reply
  • 2282 views

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.

This topic has been closed for replies.
Best answer by jean-michel.d

​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

1 reply

jean-michel.dBest answer
ST Employee
April 2, 2019

​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

ACapo
ACapoAuthor
Associate II
April 2, 2019

Thanks, I miss such information!