Detection among the other vision tasks
| Task | Output for one image |
|---|---|
| Image classification | One or more labels for the whole image |
| Object detection | A box, a class and a score for each object |
| Instance segmentation | A pixel mask, a class and a score for each object |
| Semantic segmentation | A class for every pixel, with no object identities |
Families of detectors
Two-stage detectors such as Faster R-CNN first propose regions that may hold an object, then classify and refine each one. One-stage detectors such as YOLO predict boxes and classes in a single pass over a grid of positions, which is why they dominate real-time use. Detectors built on DETR treat the boxes as a set: a transformer decoder turns a fixed number of queries into objects, and models such as RT-DETRv2 and DEIMv2 need no non-maximum suppression afterwards.
The labels it needs
A detector trains on bounding boxes around each object of each class. Polygons and masks also work, since a box can be computed from them, and some training apps do this on their own: Train YOLOv5 turns every label into a bounding box before training. Boxes travel between tools in formats such as YOLO, COCO and Pascal VOC.
Common mistakes
- Unlabeled objects in training images. The model is punished for finding them and learns to call them background.
- Boxes drawn tight on some images and loose on others, which caps localization quality whatever the architecture.
- Judging a model by one score at IoU 0.5 when the use case needs precise boxes; see mean average precision.
Detection in Supervisely
YOLO26, DEIMv2 and RT-DETRv2 train on a labeled project without code on the model training page, and every run ends with an evaluation report. The walkthrough train YOLOv8 on custom data shows the flow end to end.