Skip to content

Commit 37b6920

Browse files
committed
Fix group_matcher regex for regnet.py
1 parent 6d4665b commit 37b6920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timm/models/regnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def _get_stage_args(self, cfg: RegNetCfg, default_stride=2, output_stride=32, dr
458458
def group_matcher(self, coarse=False):
459459
return dict(
460460
stem=r'^stem',
461-
blocks=r'^stages\.(\d+)' if coarse else r'^stages\.(\d+)\.blocks\.(\d+)',
461+
blocks=r'^s(\d+)' if coarse else r'^s(\d+)\.b(\d+)',
462462
)
463463

464464
@torch.jit.ignore

0 commit comments

Comments
 (0)