Return boxes for SAM prompts inference (#16276)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
c2068df9d9
commit
02e995383d
2 changed files with 8 additions and 6 deletions
|
|
@ -101,7 +101,7 @@ def test_mobilesam():
|
|||
model.predict(source, points=[900, 370], labels=[1])
|
||||
|
||||
# Predict a segment based on a box prompt
|
||||
model.predict(source, bboxes=[439, 437, 524, 709])
|
||||
model.predict(source, bboxes=[439, 437, 524, 709], save=True)
|
||||
|
||||
# Predict all
|
||||
# model(source)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue