|
4 | 4 |
|
5 | 5 | from . import inception_resnet_v2 as irv2
|
6 | 6 | from . import inception_v3 as iv3
|
| 7 | +from . import mobilenet_v3 as mbnv3 |
7 | 8 |
|
8 | 9 |
|
9 | 10 | class BackbonesFactory(ModelsFactory):
|
@@ -51,6 +52,8 @@ class BackbonesFactory(ModelsFactory):
|
51 | 52 | 'mobilenet': ('conv_pw_11_relu', 'conv_pw_5_relu', 'conv_pw_3_relu', 'conv_pw_1_relu'),
|
52 | 53 | 'mobilenetv2': ('block_13_expand_relu', 'block_6_expand_relu', 'block_3_expand_relu',
|
53 | 54 | 'block_1_expand_relu'),
|
| 55 | + 'mobilenetv3': ('Conv_1', 'activation_29', 'activation_15', 'activation_6'), |
| 56 | + 'mobilenetv3small': ('activation_31', 'activation_22', 'activation_7', 'activation_3'), |
54 | 57 |
|
55 | 58 | # EfficientNets
|
56 | 59 | 'efficientnetb0': ('block6a_expand_activation', 'block4a_expand_activation',
|
@@ -84,6 +87,9 @@ class BackbonesFactory(ModelsFactory):
|
84 | 87 | 'efficientnetb5': [eff.EfficientNetB5, eff.preprocess_input],
|
85 | 88 | 'efficientnetb6': [eff.EfficientNetB6, eff.preprocess_input],
|
86 | 89 | 'efficientnetb7': [eff.EfficientNetB7, eff.preprocess_input],
|
| 90 | + |
| 91 | + 'mobilenetv3': [mbnv3.MobileNetV3Large, mbnv3.preprocess_input], |
| 92 | + 'mobilenetv3small': [mbnv3.MobileNetV3Small, mbnv3.preprocess_input], |
87 | 93 | }
|
88 | 94 |
|
89 | 95 | # currently not supported
|
|
0 commit comments