Skip to content

Commit f606c45

Browse files
committed
1 parent 5a196dd commit f606c45

File tree

6 files changed

+661
-7
lines changed

6 files changed

+661
-7
lines changed

tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
torch._C._jit_set_profiling_mode(False)
1616

1717
# transformer models don't support many of the spatial / feature based model functionalities
18-
NON_STD_FILTERS = ['vit_*', 'tnt_*', 'pit_*']
18+
NON_STD_FILTERS = ['vit_*', 'tnt_*', 'pit_*', 'swin_*']
1919
NUM_NON_STD = len(NON_STD_FILTERS)
2020

2121
# exclude models that cause specific test failures

timm/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from .selecsls import *
2727
from .senet import *
2828
from .sknet import *
29+
from .swin_transformer import *
2930
from .tnt import *
3031
from .tresnet import *
3132
from .vgg import *

timm/models/pit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _cfg(url='', **kwargs):
3131
return {
3232
'url': url,
3333
'num_classes': 1000, 'input_size': (3, 224, 224), 'pool_size': None,
34-
'crop_pct': .9, 'interpolation': 'bicubic',
34+
'crop_pct': .9, 'interpolation': 'bicubic', 'fixed_input_size': True,
3535
'mean': IMAGENET_DEFAULT_MEAN, 'std': IMAGENET_DEFAULT_STD,
3636
'first_conv': 'patch_embed.conv', 'classifier': 'head',
3737
**kwargs

0 commit comments

Comments
 (0)