Skip to content

Commit

Permalink
Missed comitting outstanding changes to default_cfg keys and test exc…
Browse files Browse the repository at this point in the history
…lusions for swin v2
  • Loading branch information
rwightman committed Feb 24, 2022
1 parent c6e4b78 commit 1420c11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
5 changes: 3 additions & 2 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
EXCLUDE_FILTERS = [
'*efficientnet_l2*', '*resnext101_32x48d', '*in21k', '*152x4_bitm', '*101x3_bitm', '*50x3_bitm',
'*nfnet_f3*', '*nfnet_f4*', '*nfnet_f5*', '*nfnet_f6*', '*nfnet_f7*', '*efficientnetv2_xl*',
'*resnetrs350*', '*resnetrs420*', 'xcit_large_24_p8*', 'vit_huge*', 'vit_gi*']
NON_STD_EXCLUDE_FILTERS = ['vit_huge*', 'vit_gi*']
'*resnetrs350*', '*resnetrs420*', 'xcit_large_24_p8*', 'vit_huge*', 'vit_gi*', 'swin*huge*',
'swin*giant*']
NON_STD_EXCLUDE_FILTERS = ['vit_huge*', 'vit_gi*', 'swin*giant*']
else:
EXCLUDE_FILTERS = []
NON_STD_EXCLUDE_FILTERS = ['vit_gi*']
Expand Down
15 changes: 6 additions & 9 deletions timm/models/swin_transformer_v2_cr.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,7 @@ def swin_v2_cr_small_384(pretrained=False, **kwargs):
num_heads=(3, 6, 12, 24),
**kwargs
)
return _create_swin_transformer_v2_cr(
'swin_v2_cr_small_384', pretrained=pretrained, **model_kwargs
return _create_swin_transformer_v2_cr('swin_v2_cr_small_384', pretrained=pretrained, **model_kwargs
)


Expand Down Expand Up @@ -863,8 +862,7 @@ def swin_v2_cr_large_384(pretrained=False, **kwargs):
num_heads=(6, 12, 24, 48),
**kwargs
)
return _create_swin_transformer_v2_cr(
'swin_v2_cr_large_384', pretrained=pretrained, **model_kwargs
return _create_swin_transformer_v2_cr('swin_v2_cr_large_384', pretrained=pretrained, **model_kwargs
)


Expand All @@ -877,7 +875,7 @@ def swin_v2_cr_large_224(pretrained=False, **kwargs):
num_heads=(6, 12, 24, 48),
**kwargs
)
return _create_swin_transformer_v2_cr('swin_v2_cr_large_patch4_window7_224', pretrained=pretrained, **model_kwargs)
return _create_swin_transformer_v2_cr('swin_v2_cr_large_224', pretrained=pretrained, **model_kwargs)


@register_model
Expand All @@ -890,7 +888,7 @@ def swin_v2_cr_huge_384(pretrained=False, **kwargs):
extra_norm_period=6,
**kwargs
)
return _create_swin_transformer_v2_cr('swin_v2_cr_huge_patch4_window12_384', pretrained=pretrained, **model_kwargs)
return _create_swin_transformer_v2_cr('swin_v2_cr_huge_384', pretrained=pretrained, **model_kwargs)


@register_model
Expand All @@ -903,7 +901,7 @@ def swin_v2_cr_huge_224(pretrained=False, **kwargs):
extra_norm_period=6,
**kwargs
)
return _create_swin_transformer_v2_cr('swin_v2_cr_huge_patch4_window7_224', pretrained=pretrained, **model_kwargs)
return _create_swin_transformer_v2_cr('swin_v2_cr_huge_224', pretrained=pretrained, **model_kwargs)


@register_model
Expand All @@ -916,8 +914,7 @@ def swin_v2_cr_giant_384(pretrained=False, **kwargs):
extra_norm_period=6,
**kwargs
)
return _create_swin_transformer_v2_cr(
'swin_v2_cr_giant_384', pretrained=pretrained, **model_kwargs
return _create_swin_transformer_v2_cr('swin_v2_cr_giant_384', pretrained=pretrained, **model_kwargs
)


Expand Down

0 comments on commit 1420c11

Please sign in to comment.