process_roboflow_result appended tracker_id only for predictions that carried one, while xyxy/confidence/class_id were appended for every prediction. A result where some predictions are tracked and others are not produced a tracker_id array shorter than the boxes, so Detections.from_inference raised "tracker_id must be a 1D np.ndarray with shape (N,)". Collect tracker_id for every prediction (None when absent) and build the array only when all detections carry one, otherwise leave it None. Fully-tracked and untracked results are unchanged. --------- Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| tools | ||
| utils | ||
| __init__.py | ||
| test_compact_mask.py | ||
| test_compact_mask_integration.py | ||
| test_compact_mask_iou.py | ||
| test_core.py | ||
| test_csv.py | ||
| test_from_adapters.py | ||
| test_from_sam.py | ||
| test_inference_slicer_compact.py | ||
| test_json.py | ||
| test_line_counter.py | ||
| test_polygon_zone_annotator.py | ||
| test_polygonzone.py | ||
| test_vlm.py | ||