Ultralytics YOLO27: Join the waitlist.
Get Started
From pip install to a custom detector you can ship
Foundation pathwaybeginner ~4 hours 10 lessonsFinal exam · Certificate

Train your first YOLO model

Take Ultralytics YOLO26 from a fresh install to a custom-trained, validated, and exported detector. You'll predict on images, lay out a real dataset, train and diagnose a pill detector, run models on video with tracking, and export to ONNX with proof that it matches PyTorch. Every step runs in Python and on the CLI, on a laptop CPU, with the real output shown. Planning, collecting, and labeling the dataset itself is covered in Building High-Performance YOLO Datasets.

What you'll learn

Train, validate, and export an Ultralytics YOLO26 model on a custom dataset, run it on video, and know how to diagnose each step when it goes wrong — from both Python and the command line.

  • Install Ultralytics, confirm which device it will use, and run YOLO26 predictions in Python and on the CLI.

  • Choose a model size from a measured latency budget instead of a leaderboard.

  • Lay out a dataset in the Ultralytics YOLO format, convert labels, and write a data.yaml that resolves from anywhere.

  • Train, validate, resume, and warm-start runs, and turn validation artifacts into a fix list.

  • Stream and track video, then export to ONNX, TensorRT, OpenVINO, and more, and prove the export matches PyTorch.

What you'll build
  • A YOLO-format pill dataset with a data.yaml that Ultralytics reads with zero corrupt labels.

  • A trained best.pt detector, with its validation numbers next to the pretrained baseline.

  • A streaming video script that counts unique objects with tracking and checks it keeps up with the frame rate.

  • An ONNX export whose detections and mAP match the PyTorch model under matched settings.

Prerequisites
  • Python 3.10+ and comfortable running Python scripts and shell commands.

  • No GPU required: every example in this course runs on a laptop CPU in minutes. An NVIDIA GPU or Apple Silicon makes larger runs faster.

  • Recommended: complete Computer Vision Foundations and Building High-Performance YOLO Datasets first.

Course content

5 modules · 10 lessons