This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
from ultralytics import YOLO
# 加载你训练好的模型(如果你有best.pt)
model = YOLO('d:/apysoftware/ultralytics-8.1.25/runs/detect/train6/weights/best.pt')
# 转换为ONNX格式(推荐Android使用)
model.export(format='onnx', imgsz=640, optimize=True)