Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change depth multiplier values? #12

Open
anilsathyan7 opened this issue Nov 20, 2019 · 2 comments
Open

How to change depth multiplier values? #12

anilsathyan7 opened this issue Nov 20, 2019 · 2 comments

Comments

@anilsathyan7
Copy link

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. Mobilenet depth_multiplier issue keras-team/keras#10349
  2. https://github.com/keras-team/keras-applications/blob/master/keras_applications/mobilenet.py
@henry2304
Copy link

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!

@anilsathyan7
Copy link
Author

Hi @henry2304 have you tried official implementation from keras-applications?
Check out: keras-team/keras-applications#183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants