Seeing as computation / 3 of 6
Object detection
What you’ll learn
- Explain the main idea of “Object detection” in your own words.
- Trace a concrete example and identify the assumptions behind it.
- Apply the principle in a practice problem and recognize a common failure.
The idea, intuitively
Detection identifies both what objects are present and where they are. A detector predicts bounding boxes, class labels, and confidence scores. Several objects may appear in a single image.
Begin with the numeric image representation and the exact target the model must predict. Image classification, detection, and segmentation use different labels and evaluation rules. Changes in lighting, camera, geography, and resolution can create distribution shifts even when the subject appears unchanged to a person.
Under the hood
Intersection over union measures box overlap. Detection evaluation also considers classification and score ranking. Duplicate predictions can be reduced with non-maximum suppression, depending on the architecture.
High confidence does not guarantee an accurately localized box.
A worked example
A street scene might produce separate boxes for two pedestrians and one bicycle. A single image label cannot express their locations.
How to use this way of thinking
Inspect inputs after preprocessing, not only the original files. Visualize labels and predictions together. Evaluate small objects, rare classes, and unfamiliar capture conditions separately. If a transformation changes the label meaning, it is not a valid augmentation for that task.
Try it yourself
Two boxes have intersection 20 and union 50. Compute IoU.
Key takeaways
- Intersection area relative to union area
- High confidence does not guarantee an accurately localized box.
- Check the assumptions with a small example before applying this idea to a larger system.
Check your understanding
Use feedback to learn. Quiz scores and lesson completion are tracked separately.
Go to lesson completionFurther reading
Original papers and reference material for this school. External resources may be in English and require internet access.
Stanford CS231n notes (opens a new tab)Hugging Face Diffusers documentation (opens a new tab)Finish this lesson
Mark this lesson complete when you’re ready to continue.