Simplify usage, remove YOLO.new() and YOLO.load()

This commit is contained in:
Glenn Jocher 2023-01-02 15:42:01 +01:00
parent 7b21a87da3
commit d76d7af566
5 changed files with 33 additions and 42 deletions

View file

@ -23,7 +23,7 @@ Requirements:
Python:
from ultralytics import YOLO
model = YOLO.new('yolov8n.yaml')
model = YOLO('yolov8n.yaml')
results = model.export(format='onnx')
CLI: