ultralytics 8.2.83 fix SAM2 CLI usage (#15871)

Signed-off-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Glenn Jocher 2024-08-28 23:11:53 +02:00 committed by GitHub
parent f8c5bf7eec
commit a222b94897
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 44 additions and 52 deletions

View file

@ -793,11 +793,7 @@ def entrypoint(debug=""):
from ultralytics import FastSAM
model = FastSAM(model)
elif "sam2" in stem:
from ultralytics import SAM2
model = SAM2(model)
elif "sam" in stem:
elif "sam_" in stem or "sam2_" in stem:
from ultralytics import SAM
model = SAM(model)