Skip to content

Commit

Permalink
Missing stem_kernel_size argument in EfficientNetFeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
rwightman committed Jun 14, 2024
1 parent 9613c76 commit a0bb5b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions timm/models/efficientnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def __init__(
num_features: int = 1280,
in_chans: int = 3,
stem_size: int = 32,
fix_stem: bool = False,
stem_kernel_size: int = 3,
fix_stem: bool = False,
output_stride: int = 32,
pad_type: str = '',
act_layer: Optional[LayerType] = None,
Expand Down Expand Up @@ -278,6 +278,7 @@ def __init__(
feature_location: str = 'bottleneck',
in_chans: int = 3,
stem_size: int = 32,
stem_kernel_size: int = 3,
fix_stem: bool = False,
output_stride: int = 32,
pad_type: str = '',
Expand All @@ -300,7 +301,7 @@ def __init__(
# Stem
if not fix_stem:
stem_size = round_chs_fn(stem_size)
self.conv_stem = create_conv2d(in_chans, stem_size, 3, stride=2, padding=pad_type)
self.conv_stem = create_conv2d(in_chans, stem_size, stem_kernel_size, stride=2, padding=pad_type)
self.bn1 = norm_act_layer(stem_size, inplace=True)

# Middle stages (IR/ER/DS Blocks)
Expand Down

0 comments on commit a0bb5b4

Please sign in to comment.