from ultralytics import YOLO
# Load a model
model = YOLO('yolov8s.pt') # load an official model
# Export the model
model.export(format='coreml', nms=True)
from ultralytics import YOLO
# Load a model
model = YOLO('yolov8s.pt') # load an official model
# Export the model
model.export(format='coreml', nms=True)