mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
[Fix] Add MAE LayerDecayOptimizerConstructor (#1539)
This commit is contained in:
parent
f33b7cafc8
commit
40ae7edd49
@ -143,7 +143,8 @@ class LearningRateDecayOptimizerConstructor(DefaultOptimizerConstructor):
|
||||
layer_id = get_layer_id_for_convnext(
|
||||
name, self.paramwise_cfg.get('num_layers'))
|
||||
logger.info(f'set param {name} as id {layer_id}')
|
||||
elif 'BEiT' in module.backbone.__class__.__name__:
|
||||
elif 'BEiT' in module.backbone.__class__.__name__ or \
|
||||
'MAE' in module.backbone.__class__.__name__:
|
||||
layer_id = get_layer_id_for_vit(name, num_layers)
|
||||
logger.info(f'set param {name} as id {layer_id}')
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user