@@ -80,7 +80,7 @@ def __init__(
80
80
round_chs_fn: Callable to round number of filters based on depth multiplier.
81
81
drop_rate: Dropout rate.
82
82
drop_path_rate: Stochastic depth rate.
83
- layer_scale_init_value: Enable layer scale on compatible blocks if not None
83
+ layer_scale_init_value: Enable layer scale on compatible blocks if not None.
84
84
global_pool: Type of pooling to use for global pooling features of the FC head.
85
85
"""
86
86
super (MobileNetV3 , self ).__init__ ()
@@ -294,6 +294,7 @@ def __init__(
294
294
se_layer : Optional [LayerType ] = None ,
295
295
drop_rate : float = 0. ,
296
296
drop_path_rate : float = 0. ,
297
+ layer_scale_init_value : Optional [float ] = None ,
297
298
):
298
299
"""
299
300
Args:
@@ -312,6 +313,7 @@ def __init__(
312
313
se_layer: Type of Squeeze-and-Excite layer.
313
314
drop_rate: Dropout rate.
314
315
drop_path_rate: Stochastic depth rate.
316
+ layer_scale_init_value: Enable layer scale on compatible blocks if not None.
315
317
"""
316
318
super (MobileNetV3Features , self ).__init__ ()
317
319
act_layer = act_layer or nn .ReLU
@@ -337,6 +339,7 @@ def __init__(
337
339
norm_layer = norm_layer ,
338
340
se_layer = se_layer ,
339
341
drop_path_rate = drop_path_rate ,
342
+ layer_scale_init_value = layer_scale_init_value ,
340
343
feature_location = feature_location ,
341
344
)
342
345
self .blocks = nn .Sequential (* builder (stem_size , block_args ))
0 commit comments