Skip to content

Commit 36ecd37

Browse files
committed
Add first_conv for mambaout
1 parent 02d29de commit 36ecd37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

timm/models/mambaout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ def __init__(
314314
drop_path_rate=0.,
315315
drop_rate=0.,
316316
head_fn='default',
317-
**kwargs,
318317
):
319318
super().__init__()
320319
self.num_classes = num_classes
@@ -461,7 +460,8 @@ def _cfg(url='', **kwargs):
461460
'url': url,
462461
'num_classes': 1000, 'input_size': (3, 224, 224), 'pool_size': (7, 7),
463462
'crop_pct': 1.0, 'interpolation': 'bicubic',
464-
'mean': IMAGENET_DEFAULT_MEAN, 'std': IMAGENET_DEFAULT_STD, 'classifier': 'head.fc',
463+
'mean': IMAGENET_DEFAULT_MEAN, 'std': IMAGENET_DEFAULT_STD,
464+
'first_conv': 'stem.conv1', 'classifier': 'head.fc',
465465
**kwargs
466466
}
467467

0 commit comments

Comments
 (0)