Skip to content

Commit

Permalink
proj_drop wasn't being called in sam vit
Browse files Browse the repository at this point in the history
  • Loading branch information
rwightman committed Aug 2, 2024
1 parent a6fe31b commit 1034462
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 @@ -182,6 +182,7 @@ def forward(self, x):

x = x.view(B, self.num_heads, N, -1).transpose(1, 2).reshape(B, N, -1)
x = self.proj(x)
x = self.proj_drop(x)
x = x.view(B, H, W, -1)
return x

Expand Down

0 comments on commit 1034462

Please sign in to comment.