Skip to content

Commit

Permalink
Update param_groups.py
Browse files Browse the repository at this point in the history
  • Loading branch information
qasfb committed Oct 27, 2023
1 parent d3b77f1 commit 3360d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dinov2/utils/param_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_vit_lr_decay_rate(name, lr_decay_rate=1.0, num_layers=12, force_is_backb
if ".pos_embed" in name or ".patch_embed" in name or ".mask_token" in name or ".cls_token" in name or ".register_tokens" in name:
layer_id = 0
elif force_is_backbone and (
"pos_embed" in name or "patch_embed" in name or "mask_token" in name or "cls_token" in name or "register_tokens" in name
"pos_embed" in name or "patch_embed" in name or "mask_token" in name or "cls_token" in name or "register_tokens" in name
):
layer_id = 0
elif ".blocks." in name and ".residual." not in name:
Expand Down

0 comments on commit 3360d38

Please sign in to comment.