Skip to content

[segmentationRDS] Fix: Do not insert empty bounding boxes in merged tracking extraction - #69

Merged
cbentejac merged 1 commit into
mainfrom
bugfix/MergedTrackingReading
Aug 11, 2026
Merged

[segmentationRDS] Fix: Do not insert empty bounding boxes in merged tracking extraction#69
cbentejac merged 1 commit into
mainfrom
bugfix/MergedTrackingReading

Conversation

@demoulinv

Copy link
Copy Markdown
Collaborator

This pull request makes a small but important fix to the extract_tracking function in segmentationRDS/bboxUtils.py. The change ensures that only non-empty bounding boxes are added to the raw_boxes dictionary, which helps prevent potential issues with empty or missing data.

  • Only add bounding boxes to raw_boxes if they are present, avoiding the insertion of None values.

@demoulinv
demoulinv requested a review from cbentejac August 11, 2026 15:07
@demoulinv demoulinv self-assigned this Aug 11, 2026
Copilot AI lite review requested due to automatic review settings August 11, 2026 15:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes extract_tracking in segmentationRDS/bboxUtils.py to avoid inserting missing per-frame boxes into raw_boxes, preventing downstream failures when computing target sizes / expanding boxes.

Changes:

  • In both the merged and forward branches, only writes to raw_boxes when a box is present for the given (frame_idx, obj_id).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cbentejac cbentejac changed the title Bugfix in merged tracking extraction [segmentationRDS] Fix: Do not insert empty boxes in merged tracking extraction Aug 11, 2026
@cbentejac cbentejac changed the title [segmentationRDS] Fix: Do not insert empty boxes in merged tracking extraction [segmentationRDS] Fix: Do not insert empty bounding boxes in merged tracking extraction Aug 11, 2026
@cbentejac
cbentejac merged commit 83ea12c into main Aug 11, 2026
1 check passed
@cbentejac
cbentejac deleted the bugfix/MergedTrackingReading branch August 11, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants