Update YOLOv8n to YOLO11n in args (#16873)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
60dbee2839
commit
a9d0cf66cb
15 changed files with 53 additions and 53 deletions
|
|
@ -11,7 +11,7 @@ from ultralytics.utils import ROOT, yaml_load
|
|||
class YOLO(Model):
|
||||
"""YOLO (You Only Look Once) object detection model."""
|
||||
|
||||
def __init__(self, model="yolov8n.pt", task=None, verbose=False):
|
||||
def __init__(self, model="yolo11n.pt", task=None, verbose=False):
|
||||
"""Initialize YOLO model, switching to YOLOWorld if model filename contains '-world'."""
|
||||
path = Path(model)
|
||||
if "-world" in path.stem and path.suffix in {".pt", ".yaml", ".yml"}: # if YOLOWorld PyTorch model
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue