Skip to content

Commit

Permalink
Merge pull request facebookresearch#167 from arun477/patch-1
Browse files Browse the repository at this point in the history
remove unused attributes from hieradet.py
  • Loading branch information
chayryali authored Aug 9, 2024
2 parents 7c8724e + 82289da commit dfd76da
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sam2/modeling/backbones/hieradet.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ def __init__(

self.dim = dim
self.dim_out = dim_out

self.num_heads = num_heads
head_dim = dim_out // num_heads
self.scale = head_dim**-0.5

self.q_pool = q_pool
self.qkv = nn.Linear(dim, dim_out * 3)
self.proj = nn.Linear(dim_out, dim_out)
Expand Down

0 comments on commit dfd76da

Please sign in to comment.