Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bw-bestperf
SAM
Commits
ca981bf3
Unverified
Commit
ca981bf3
authored
Apr 10, 2023
by
ericmintun
Committed by
GitHub
Apr 10, 2023
Browse files
Merge pull request #75 from Xrenya/patch-1
Update docstring of image_encoder.py
parents
322eebc0
a77cb1fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
segment_anything/modeling/image_encoder.py
segment_anything/modeling/image_encoder.py
+2
-2
No files found.
segment_anything/modeling/image_encoder.py
View file @
ca981bf3
...
...
@@ -144,7 +144,7 @@ class Block(nn.Module):
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__
()
...
...
@@ -201,7 +201,7 @@ class Attention(nn.Module):
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__
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment