mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
proj_drop wasn't being called in sam vit
This commit is contained in:
parent
a6fe31b096
commit
10344625be
@ -182,6 +182,7 @@ class Attention(nn.Module):
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user