0
0
PyTorchml~5 mins

Non-maximum suppression in PyTorch - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ABackground pixels
BLow confidence scores
CSmall objects
DDuplicate bounding boxes with high overlap
In PyTorch, which function is used for Non-maximum Suppression?
Atorchvision.ops.nms()
Btorch.ops.torchvision.nms()
Ctorch.nms()
Dtorch.nn.NMS()
What does the IoU threshold control in NMS?
AMaximum allowed overlap between boxes
BNumber of boxes to keep
CSize of the bounding box
DMinimum confidence score to keep a box
If the IoU threshold is set very high, what is the likely effect?
AMore boxes are removed
BMore duplicate boxes remain
CNo boxes are removed
DOnly the smallest boxes remain
Which metric is used to measure overlap between bounding boxes in NMS?
ACosine similarity
BEuclidean distance
CIntersection over Union (IoU)
DManhattan distance
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.