Skip to content

Commit

Permalink
set self.num_features to neck_chans if neck_chans > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
developer0hye authored Aug 11, 2023
1 parent 3a44e6c commit 2048f6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions timm/models/vision_transformer_sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ def __init__(
),
LayerNorm2d(neck_chans),
)
self.num_features = neck_chans
else:
self.neck = nn.Identity()
neck_chans = embed_dim
Expand Down

0 comments on commit 2048f6f

Please sign in to comment.