📚 Course contents

AI & Computer Vision, lesson 24 of 52

Train a Custom Sports Detector with YOLO

intermediate28 min readFull course

Introduction

The pretrained YOLO from lesson 23 knows "person" and "sports ball", but not your ball on your pitch, and it has never heard of a goal. Today you'll fix that: take the dataset you collected and labelled, train YOLO on it with a free cloud GPU, and learn to read the numbers that tell you whether it worked.

By the end of this lesson you'll be able to:

  • Export a labelled Roboflow dataset in YOLO format and read data.yaml
  • Run a YOLO training job in Google Colab on a free GPU
  • Explain the training loss, precision, recall, mAP50 and mAP50-95
  • Compute average precision for one class by hand and in code
  • Read the results plots and decide whether to train longer, collect more data, or stop
  • Evaluate on the test split once, and export the model for later sessions
  • Log runs so experiments can be compared
Train a Custom Sports Detector with YOLO | Electronics Simplified