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
|
|
@ -787,7 +787,7 @@ def entrypoint(debug=""):
|
|||
from ultralytics import FastSAM
|
||||
|
||||
model = FastSAM(model)
|
||||
elif "sam_" in stem or "sam2_" in stem:
|
||||
elif "sam_" in stem or "sam2_" in stem or "sam2.1_" in stem:
|
||||
from ultralytics import SAM
|
||||
|
||||
model = SAM(model)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue