We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de861af commit b27b84dCopy full SHA for b27b84d
segment_anything_fast/modeling/image_encoder.py
@@ -346,7 +346,6 @@ def add_decomposed_rel_pos(
346
Calculate decomposed Relative Positional Embeddings from :paper:`mvitv2`.
347
https://github.com/facebookresearch/mvit/blob/19786631e330df9f3622e5402b4a419a263a2c80/mvit/models/attention.py # noqa B950
348
Args:
349
- attn (Tensor): attention map.
350
q (Tensor): query q in the attention layer with shape (B, q_h * q_w, C).
351
rel_pos_h (Tensor): relative position embeddings (Lh, C) for height axis.
352
rel_pos_w (Tensor): relative position embeddings (Lw, C) for width axis.
0 commit comments