from ultralytics import YOLOv10 model = YOLOv10('runs/detect/train/weights/last.pt') metrics = model.val(batch=8, data='gift.yaml')