Skip to content

Commit

Permalink
Update docstring of image_encoder.py
Browse files Browse the repository at this point in the history
minor docstring fix
  • Loading branch information
Xrenya authored Apr 7, 2023
1 parent 9e1eb9f commit a77cb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions segment_anything/modeling/image_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __init__(
rel_pos_zero_init (bool): If True, zero initialize relative positional parameters.
window_size (int): Window size for window attention blocks. If it equals 0, then
use global attention.
input_size (int or None): Input resolution for calculating the relative positional
input_size (tuple(int, int) or None): Input resolution for calculating the relative positional
parameter size.
"""
super().__init__()
Expand Down Expand Up @@ -201,7 +201,7 @@ def __init__(
qkv_bias (bool: If True, add a learnable bias to query, key, value.
rel_pos (bool): If True, add relative positional embeddings to the attention map.
rel_pos_zero_init (bool): If True, zero initialize relative positional parameters.
input_size (int or None): Input resolution for calculating the relative positional
input_size (tuple(int, int) or None): Input resolution for calculating the relative positional
parameter size.
"""
super().__init__()
Expand Down

0 comments on commit a77cb1f

Please sign in to comment.