Repository navigation
Open
Description
Context
PRs #24 and #25 merged the YOLO26/BoT-SORT and rally retraining work. During conflict resolution, the mixed-FPS implementation in chronological_camera_train_validation_split was retained because it is still used by historical comparison paths.
The maintained clean-only trainer has since moved to a stronger split-before-extraction workflow. It plans source ranges, materializes disjoint train and validation clips, and then builds windows independently inside each partition. This prevents transformer context and audio normalization history from crossing the split.
Current state
run_clean_rally_experimentplans partitions withplan_rally_camera_splitsand never calls the historical mixed-FPS splitter.- Historical matched-comparison, candidate-inclusive, and shortcut-diagnostic paths still call
chronological_camera_train_validation_split. - The historical splitter uses whole-window containment plus a guard band around the chronological cut because its windows were built from a whole recording.
- Mixed FPS handling is still required in that historical path, where sources within a camera may have different frame rates.
Concerns
- Applying the historical guard to already-disjoint clean-only partitions would double-cut the chronology and discard otherwise valid edge footage.
- The clean planner prefers a whole-recording boundary or a reviewed break near 80%, but can fall back to cutting through a rally.
- A rally crossing that cut appears on both train and validation sides with partial-rally metadata. Complete-interval metrics exclude the crossing rally, so context leakage is prevented, but rally-level independence is not absolute.
- Keeping both split strategies creates a risk that future work calls the historical splitter on partition-first windows.
Proposed resolution
- Decide whether the clean-only partition-first workflow is the sole maintained training path.
- If yes, migrate the remaining historical experiment arms to partition-first splitting, then remove the historical mixed-FPS splitter and its tests, or clearly mark the entire historical path as legacy.
- If strict rally-level independence is required, harden
plan_rally_camera_splitsso it does not cut through a rally and explicitly rejects inputs where no valid split exists. - Add an assertion or API boundary preventing the clean-only path from accidentally applying a second guard-based split.
Acceptance criteria
- One documented train/validation splitting strategy for maintained training.
- No redundant guard-based cut after source partitions are materialized.
- Historical-only behavior is clearly isolated or removed.
- Tests cover mixed-FPS partitions through the authoritative path and the chosen policy for rallies crossing a cut.
Metadata
Metadata
Assignees
Labels
No labels
Activity