Skip to content

Commit

Permalink
Merge pull request #1914 from developer0hye/developer0hye-patch-1
Browse files Browse the repository at this point in the history
Set self.num_features to neck_chans if neck_chans > 0 for vision_transformer_sam
  • Loading branch information
rwightman authored Aug 11, 2023
2 parents 3a44e6c + 2048f6f commit 379998e
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 379998e

Please sign in to comment.