scorevision: push artifact
Browse files97 unmodified lines9899100101102103104254 unmodified lines35936036136236336436597 unmodified lines# Tuning matched to alfred's deployed model — bias toward precision to dodge# the false_positive pillar penalty (validator weights FP heavily on this element).self.conf_thres = 0.40self.iou_thres = 0.4self.cross_iou_thresh = 0.7self.max_det = 100254 unmodified linescls_ids = self.cls_remap[cls_ids]if apply_conf_thresh:keep = scores >= self.conf_thresboxes = boxes[keep]scores = scores[keep]cls_ids = cls_ids[keep]97 unmodified lines9899100101102103104105106107108254 unmodified lines36336436536636736836937037137237397 unmodified lines# Tuning matched to alfred's deployed model — bias toward precision to dodge# the false_positive pillar penalty (validator weights FP heavily on this element).# v13 sweet spot on starter (true GT): uniform conf=0.50.# Tuning per-class on 7 images overfits — leave-one-out CV showed it# collapsed to 0.314 on held-out shards. Uniform 0.50 is robust.self.conf_thres = 0.50self.conf_thres_per_class = np.array([0.50] * 6, dtype=np.float32)self.iou_thres = 0.4self.cross_iou_thresh = 0.7self.max_det = 100254 unmodified linescls_ids = self.cls_remap[cls_ids]if apply_conf_thresh:# Per-class threshold: each box compared against its own class's thresholdcls_thresh = np.full(len(scores), self.conf_thres, dtype=np.float32)valid_cls = (cls_ids >= 0) & (cls_ids < len(self.conf_thres_per_class))cls_thresh[valid_cls] = self.conf_thres_per_class[cls_ids[valid_cls]]keep = scores >= cls_threshboxes = boxes[keep]scores = scores[keep]cls_ids = cls_ids[keep]
miner.py+10-2