Skip to content

Commit 5c504b4

Browse files
YassineYousfirwightman
authored andcommitted
flip these two
1 parent 8ba2038 commit 5c504b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

timm/models/fastvit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ def _fuse_bn(
421421
def convolutional_stem(
422422
in_chs: int,
423423
out_chs: int,
424-
inference_mode: bool = False,
425424
act_layer: nn.Module = nn.GELU,
425+
inference_mode: bool = False
426426
) -> nn.Sequential:
427427
"""Build convolutional stem with MobileOne blocks.
428428
@@ -1124,8 +1124,8 @@ def __init__(
11241124
self.stem = convolutional_stem(
11251125
in_chans,
11261126
embed_dims[0],
1127+
act_layer,
11271128
inference_mode,
1128-
act_layer
11291129
)
11301130

11311131
# Build the main stages of the network architecture
@@ -1187,6 +1187,7 @@ def __init__(
11871187
group_size=1,
11881188
inference_mode=inference_mode,
11891189
use_se=True,
1190+
act_layer=act_layer,
11901191
num_conv_branches=1,
11911192
)
11921193
self.head = ClassifierHead(

0 commit comments

Comments
 (0)