Model Pipeline - Non-maximum suppression
Non-maximum suppression (NMS) is a technique used in object detection to remove overlapping bounding boxes. It keeps only the most confident box for each object, helping the model make clear decisions.
Non-maximum suppression (NMS) is a technique used in object detection to remove overlapping bounding boxes. It keeps only the most confident box for each object, helping the model make clear decisions.
Loss 1.2 |**** 0.9 |*** 0.7 |** 0.5 |* 0.4 |
| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 1.2 | 0.45 | Initial training with high loss and low accuracy |
| 2 | 0.9 | 0.60 | Loss decreased, accuracy improved as model learns |
| 3 | 0.7 | 0.72 | Better bounding box predictions, NMS helps reduce duplicates |
| 4 | 0.5 | 0.80 | Model converging, NMS effectively filters overlapping boxes |
| 5 | 0.4 | 0.85 | Final epoch with good balance of precision and recall |
import torch boxes = torch.tensor([[10, 10, 20, 20], [11, 11, 21, 21], [30, 30, 40, 40]], dtype=torch.float) scores = torch.tensor([0.9, 0.8, 0.7]) iou_threshold = 0.5 indices = torch.ops.torchvision.nms(boxes, scores, iou_threshold) print(indices.tolist())
import torch boxes = torch.tensor([[0, 0, 10, 10], [1, 1, 11, 11]], dtype=torch.float) scores = torch.tensor([0.5, 0.6]) iou_threshold = 0.3 indices = torch.nms(boxes, scores, iou_threshold) print(indices)
Pass the test and this pattern moves unknown