mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Fix group_matcher regex for regnet.py
This commit is contained in:
parent
6d4665bb52
commit
37b6920df3
@ -458,7 +458,7 @@ class RegNet(nn.Module):
|
|||||||
def group_matcher(self, coarse=False):
|
def group_matcher(self, coarse=False):
|
||||||
return dict(
|
return dict(
|
||||||
stem=r'^stem',
|
stem=r'^stem',
|
||||||
blocks=r'^stages\.(\d+)' if coarse else r'^stages\.(\d+)\.blocks\.(\d+)',
|
blocks=r'^s(\d+)' if coarse else r'^s(\d+)\.b(\d+)',
|
||||||
)
|
)
|
||||||
|
|
||||||
@torch.jit.ignore
|
@torch.jit.ignore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user