Make track lifecycle operations classification-safe - #1850
Draft
PaulHax wants to merge 7 commits into
Draft
Conversation
This was referenced Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make track lifecycle operations classification-safe
Merge, split, and removal operations can change several camera tracks. Before this PR, these
operations could lose classification pairs. Results could also depend on camera order.
Changes
A source pair with confidence
1.0no longer removes unrelated pairs during a merge. Divergencewarnings do not change stored evidence.
Camera-order behavior
Some actions must use a selected camera or the first configured camera. Other actions use the full
logical track. This PR tests display classification, geometry fallback, seek targets, and track
existence with the correct camera scope.
Manual tests
Test data: download and extract
classification.zip. Paths
below are relative to
dive-classification-test-data/.Disjoint multicamera merge
media/multicamera/, import the port, starboard, andconfiguration files from
multicamera/disjoint-track-merge/, merge track 5 into track 4, thensave and reload.
Verify: Both cameras contain the expected observations, attributes, and combined confidence vector.
Divergent replica repair
media/multicamera/and import the annotation andconfiguration files from
multicamera/divergent-classification-replicas/.Verify: Both cameras agree after reload, and the divergence warning does not return.
Multicamera split
dive-classification-test-data/classification/multicamera-linked-types/.Verify: Both split results retain copied confidence vectors in both cameras.
Final-pair removal
dive-classification-test-data/classification/multicamera-linked-types/.Verify: The track and its group membership are absent from both cameras.
Stack
This is PR 7 of 9. Previous: add read-only track projections.
Next: add DIVE KWCOCO classification support.
This PR is stacked on
hierarchical-classification-pr3-projections.Overall: 16 files, +746/-115. Commits:
5c77987dthrough3e6650ad.