from ultralytics import YOLO model = YOLO('yolov13n.pt') # Replace with the desired model scale model.export(format="onnx", half=True) # or format="onnx"