MobileNetV3 icon indicating copy to clipboard operation
MobileNetV3 copied to clipboard

How to change depth multiplier values?

Open anilsathyan7 opened this issue 5 years ago • 2 comments

Hey in you code depth multiplier value is 1 and width multiplier alpha can be configured and theoretically both seems to be different.If i change the depth multiplier value as 0.5 in depthwise conv2d(like waht appears in official mobilenetv2 or deeplab) it shows error. If i want to decrease the depth multiplier how can it be done?

Ref

  1. https://github.com/keras-team/keras/issues/10349
  2. https://github.com/keras-team/keras-applications/blob/master/keras_applications/mobilenet.py

anilsathyan7 avatar Nov 20 '19 06:11 anilsathyan7

Hi @anilsathyan7, I was also trying to get the alpha parameter to work, and set the alpha parameter to 0.5 by modifying line 106 of train_cls.py: model = MobileNetV3_Small(shape, n_class, 0.5).build() I don't seem to get any error, but the models (.h5 weights) I obtain still have size 12MB, which was the same as alpha=1.0. Did you have any luck on figuring this out, Anil? In case you or @xiaochus have any suggestions, please let me know. Thanks for helping implement this code, @xiaochus!

henry2304 avatar Feb 28 '20 23:02 henry2304

Hi @henry2304 have you tried official implementation from keras-applications? Check out: https://github.com/keras-team/keras-applications/issues/183

anilsathyan7 avatar Jun 03 '20 12:06 anilsathyan7