Skip to main content

ml_dl.train_yolo_detector

ml_dl.train_yolo_detector(
    data_yaml,
    project_dir,
    run_name='building_det',
    epochs=60,
    imgsz=512,
    batch=4,
    device='cpu',
    seed=42,
    weights='yolov8n.pt',
    workers=2,
    verbose=False,
    **train_kwargs,
)

Run Ultralytics YOLO training with the arguments the notebook needs.

Parameters

Name Type Description Default
weights str Starting weights file. Standard sizes "yolov8n.pt" (~3 M params), "yolov8s.pt" (~11 M), "yolov8m.pt" (~26 M) download from Ultralytics on first use and live in their cache. 'yolov8n.pt'
**train_kwargs Forwarded verbatim to model.train(...). Use this for per-experiment augmentation tweaks (degrees=15.0, scale=0.5, translate=0.1, …) without having to add a new keyword for each. {}
Returns required
Outputs required
notebook required