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
d4ecc68d
Commit
d4ecc68d
authored
Apr 07, 2023
by
derekray311511
Committed by
ericmintun
Apr 12, 2023
Browse files
Update return type hint of predict function
parent
40df6e40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
segment_anything/predictor.py
segment_anything/predictor.py
+1
-1
No files found.
segment_anything/predictor.py
View file @
d4ecc68d
...
@@ -97,7 +97,7 @@ class SamPredictor:
...
@@ -97,7 +97,7 @@ class SamPredictor:
mask_input
:
Optional
[
np
.
ndarray
]
=
None
,
mask_input
:
Optional
[
np
.
ndarray
]
=
None
,
multimask_output
:
bool
=
True
,
multimask_output
:
bool
=
True
,
return_logits
:
bool
=
False
,
return_logits
:
bool
=
False
,
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
,
torch
.
Tensor
]:
)
->
Tuple
[
np
.
ndarray
,
np
.
ndarray
,
np
.
ndarray
]:
"""
"""
Predict masks for the given input prompts, using the currently set image.
Predict masks for the given input prompts, using the currently set image.
...
...
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