@@ -328,7 +328,7 @@ def make_blocks(
328328 drop_block_rate : float = 0. ,
329329 drop_path_rate : float = 0. ,
330330 drop_block_batchwise : bool = False ,
331- drop_block_messy : bool = True ,
331+ drop_block_partial_edge_blocks : bool = True ,
332332 ** kwargs ,
333333) -> Tuple [List [Tuple [str , nn .Module ]], List [Dict [str , Any ]]]:
334334 """Create ResNet stages with specified block configurations.
@@ -344,7 +344,7 @@ def make_blocks(
344344 avg_down: Use average pooling for downsample.
345345 drop_block_rate: DropBlock drop rate.
346346 drop_block_batchwise: Batchwise block dropping, faster.
347- drop_block_messy : dropping produces partial blocks on the edge, faster.
347+ drop_block_partial_edge_blocks : dropping produces partial blocks on the edge, faster.
348348 drop_path_rate: Drop path rate for stochastic depth.
349349 **kwargs: Additional arguments passed to block constructors.
350350
@@ -364,7 +364,7 @@ def make_blocks(
364364 drop_blocks (
365365 drop_prob = drop_block_rate ,
366366 batchwise = drop_block_batchwise ,
367- messy = drop_block_messy ,
367+ partial_edge_blocks = drop_block_partial_edge_blocks ,
368368 ))):
369369 stage_name = f'layer{ stage_idx + 1 } ' # never liked this name, but weight compat requires it
370370 stride = 1 if stage_idx == 0 else 2
@@ -468,7 +468,7 @@ def __init__(
468468 drop_path_rate : float = 0. ,
469469 drop_block_rate : float = 0. ,
470470 drop_block_batchwise : bool = True ,
471- drop_block_messy : bool = True ,
471+ drop_block_partial_edge_blocks : bool = True ,
472472 zero_init_last : bool = True ,
473473 block_args : Optional [Dict [str , Any ]] = None ,
474474 ):
@@ -500,7 +500,7 @@ def __init__(
500500 drop_path_rate (float): Stochastic depth drop-path rate (default 0.)
501501 drop_block_rate (float): Drop block rate (default 0.)
502502 drop_block_batchwise (bool): Sample blocks batchwise, faster.
503- drop_block_messy (bool): Partial block dropping at the edges, faster.
503+ drop_block_partial_edge_blocks (bool): Partial block dropping at the edges, faster.
504504 zero_init_last (bool): zero-init the last weight in residual path (usually last BN affine weight)
505505 block_args (dict): Extra kwargs to pass through to block module
506506 """
@@ -572,7 +572,7 @@ def __init__(
572572 aa_layer = aa_layer ,
573573 drop_block_rate = drop_block_rate ,
574574 drop_block_batchwise = drop_block_batchwise ,
575- drop_block_messy = drop_block_messy ,
575+ drop_block_partial_edge_blocks = drop_block_partial_edge_blocks ,
576576 drop_path_rate = drop_path_rate ,
577577 ** block_args ,
578578 )
@@ -1470,7 +1470,7 @@ def resnet10t_dropblock_correct(pretrained: bool = False, **kwargs) -> ResNet:
14701470 avg_down = True ,
14711471 drop_block_rate = 0.05 ,
14721472 drop_block_batchwise = True ,
1473- drop_block_messy = True ,
1473+ drop_block_partial_edge_blocks = True ,
14741474 )
14751475 return _create_resnet ('resnet10t' , pretrained , ** dict (model_args , ** kwargs ))
14761476
@@ -1486,7 +1486,7 @@ def resnet10t_dropblock_fast(pretrained: bool = False, **kwargs) -> ResNet:
14861486 avg_down = True ,
14871487 drop_block_rate = 0.05 ,
14881488 drop_block_batchwise = False ,
1489- drop_block_messy = False ,
1489+ drop_block_partial_edge_blocks = False ,
14901490 )
14911491 return _create_resnet ('resnet10t' , pretrained , ** dict (model_args , ** kwargs ))
14921492
0 commit comments