Skip to main content

ml_dl.validate_yolo_model

ml_dl.validate_yolo_model(
    model,
    data_yaml,
    *,
    split,
    project_dir,
    run_name,
    imgsz=512,
    batch=4,
    device='cpu',
)

Run Ultralytics validation on a held-out split.

Returns (metrics, stats) where metrics is the full Ultralytics metrics object and stats is the four-number dict the notebook table displays: mAP50, mAP50-95, precision, recall.