from ultralytics import YOLOv10 model = YOLOv10('yolov10n.pt') # or # model = YOLOv10.from_pretrained('yolov10s.pt') model.export('yolov10s.onnx')