Recall & Review
beginner
What is Non-maximum Suppression (NMS) in object detection?
NMS is a technique to remove duplicate bounding boxes by keeping only the box with the highest confidence score and discarding others that overlap too much with it.
Click to reveal answer
beginner
Why do we need Non-maximum Suppression in object detection?
Because object detectors often predict many overlapping boxes for the same object, NMS helps keep only the best box to avoid multiple detections of the same object.
Click to reveal answer
intermediate
What is the role of the IoU (Intersection over Union) threshold in NMS?
The IoU threshold decides how much overlap is allowed between boxes. Boxes with IoU above this threshold are considered duplicates and suppressed.
Click to reveal answer
intermediate
How does PyTorch implement Non-maximum Suppression?
PyTorch provides a function torchvision.ops.nms(boxes, scores, iou_threshold) that returns indices of boxes to keep after applying NMS.
Click to reveal answer
intermediate
What happens if the IoU threshold in NMS is set too low or too high?
If too low, many boxes are removed, possibly missing some objects. If too high, many overlapping boxes remain, causing duplicate detections.
Click to reveal answer
What does Non-maximum Suppression primarily remove?
✗ Incorrect
NMS removes duplicate bounding boxes that overlap too much, keeping only the one with the highest confidence.
In PyTorch, which function is used for Non-maximum Suppression?
✗ Incorrect
The correct PyTorch function is torchvision.ops.nms() to perform Non-maximum Suppression.
What does the IoU threshold control in NMS?
✗ Incorrect
IoU threshold controls the maximum allowed overlap between boxes before one is suppressed.
If the IoU threshold is set very high, what is the likely effect?
✗ Incorrect
A high IoU threshold means boxes can overlap a lot before suppression, so more duplicates remain.
Which metric is used to measure overlap between bounding boxes in NMS?
✗ Incorrect
IoU measures the overlap area divided by the union area of two boxes, used in NMS.
Explain how Non-maximum Suppression works and why it is important in object detection.
Think about how multiple boxes can cover the same object and how NMS helps keep only the best one.
You got /5 concepts.
Describe how to use PyTorch's NMS function including its inputs and outputs.
Consider what information you need to give the function and what you get back.
You got /5 concepts.