From c21b21660df1d617c14f85df788ed3f8cc716b6e Mon Sep 17 00:00:00 2001 From: Ross Wightman Date: Fri, 7 Jan 2022 14:31:43 -0800 Subject: [PATCH] visformer supports spatial feat map, update pool_size in pretrained cfg to match --- timm/models/visformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timm/models/visformer.py b/timm/models/visformer.py index 37284c9d..3a9be06f 100644 --- a/timm/models/visformer.py +++ b/timm/models/visformer.py @@ -23,7 +23,7 @@ __all__ = ['Visformer'] def _cfg(url='', **kwargs): return { 'url': url, - 'num_classes': 1000, 'input_size': (3, 224, 224), 'pool_size': None, + 'num_classes': 1000, 'input_size': (3, 224, 224), 'pool_size': (7, 7), 'crop_pct': .9, 'interpolation': 'bicubic', 'fixed_input_size': True, 'mean': IMAGENET_DEFAULT_MEAN, 'std': IMAGENET_DEFAULT_STD, 'first_conv': 'stem.0', 'classifier': 'head',