From 61200db0abcdfee0b609a4e75b20258a5903827b Mon Sep 17 00:00:00 2001 From: Ross Wightman Date: Thu, 29 Oct 2020 15:49:36 -0700 Subject: [PATCH] in_chans=1 working w/ pretrained weights for vision_transformer --- timm/models/vision_transformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timm/models/vision_transformer.py b/timm/models/vision_transformer.py index 32acccf3..bd9ea231 100644 --- a/timm/models/vision_transformer.py +++ b/timm/models/vision_transformer.py @@ -37,7 +37,7 @@ def _cfg(url='', **kwargs): 'num_classes': 1000, 'input_size': (3, 224, 224), 'pool_size': None, 'crop_pct': .9, 'interpolation': 'bicubic', 'mean': IMAGENET_DEFAULT_MEAN, 'std': IMAGENET_DEFAULT_STD, - 'first_conv': '', 'classifier': 'head', + 'first_conv': 'patch_embed.proj', 'classifier': 'head', **kwargs }