cvnets.matcher_det package
Submodules
cvnets.matcher_det.base_matcher module
cvnets.matcher_det.ssd_matcher module
- class cvnets.matcher_det.ssd_matcher.SSDMatcher(opts, bg_class_id: int | None = 0, *args, **kwargs)[source]
Bases:
BaseMatcher
This class assigns labels to anchors via SSD matching process
- Parameters:
opts – command line arguments
bg_class_id – Background class index
- Shape:
- Input:
gt_boxes: Ground-truth boxes in corner form (xyxy format). Shape is \((N, 4)\) where \(N\) is the number of boxes
gt_labels: Ground-truth box labels. Shape is \((N)\)
anchors: Anchor boxes in center form (c_x, c_y, w, h). Shape is \((M, 4)\) where \(M\) is the number of anchors
- Output:
matched_boxes of shape \((M, 4)\)
matched_box_labels of shape \((M)\)