ultralytics 8.3.22 SAM2.1 integration (#17131)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
55eec8347f
commit
f6c378835b
6 changed files with 172 additions and 77 deletions
|
|
@ -116,7 +116,7 @@ def test_predict_sam():
|
|||
from ultralytics.models.sam import Predictor as SAMPredictor
|
||||
|
||||
# Load a model
|
||||
model = SAM(WEIGHTS_DIR / "sam_b.pt")
|
||||
model = SAM(WEIGHTS_DIR / "sam2.1_b.pt")
|
||||
|
||||
# Display model information (optional)
|
||||
model.info()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue