feat: add PASS_NETWORK ball possession and collaboration overlays (PR 7) - #66
Open
AlexBodner wants to merge 8 commits into
Open
feat: add PASS_NETWORK ball possession and collaboration overlays (PR 7)#66AlexBodner wants to merge 8 commits into
AlexBodner wants to merge 8 commits into
Conversation
4 tasks
Collaborator
Author
|
Cleanup: moved |
7 tasks
AlexBodner
force-pushed
the
feat/soccer-pr6-goal-shading
branch
from
July 21, 2026 17:05
90642f0 to
41e1b2d
Compare
…ation overlays (PR7). Ports pass inference into sports/common, wires session pass_frames/pass_scan, and ships an opt-in mode with carrier highlights, pass arrows, and a short end-card. Co-authored-by: Cursor <cursoragent@cursor.com>
…o-op. Pass detection never gated on lane scores — only decoration. Dropping pass_options.py and corridor geometry keeps PASS_NETWORK reviewable without the alternatives stack. Co-authored-by: Cursor <cursoragent@cursor.com>
Keeps SPEED independent of pass_pitch and matches the Copilot RANSAC note. Co-authored-by: Cursor <cursoragent@cursor.com>
Align with PR1 review cleanup so the stack tip matches declared support. Co-authored-by: Cursor <cursoragent@cursor.com>
…ring. Detect passes/turnovers without quality decoration; credit possession under pending opponent releases; tighten transit/gravity fly-by gates. Collaboration aggregates stay count-only so PR8 can add alternatives scoring once. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop dead opponent-gap helpers and unused possession imports with no callers. Behavior unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
AlexBodner
force-pushed
the
feat/soccer-pr7-pass-network
branch
from
July 22, 2026 16:07
0646317 to
a0e2eba
Compare
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.
Summary
VideoTrackingSessionMode.PASS_NETWORK(opt-in; not inALL) with carrier/pass/turnover overlays, radar minimap, and a short top-collaborators end-cardpass_optionsdeferred to PR8 (PassQualityScoreris a no-op here; detection does not gate on scores)Ball tracking here uses the dedicated ball YOLO only (
football-ball-detection.pt). We are not adding a fallback that fills gaps with player-detector ball boxes when the dedicated model drops mid-flight — that helped recall on some hard clips in earlier experiments, but it adds a second ball path and caching story we do not want in this PR. If dedicated-ball gaps become a real issue in production demos, it can be a focused follow-up.Demo
PASS_NETWORK— ball attach, pass/turnover overlays, collaboration arcs, and end-card (clip: 10 passes, 1 turnover on the sample video):All demos
Run
cd examples/soccer python main.py \ --source_video_path data/08fd33_0.mp4 \ --target_video_path data/renders/pr7-pass-network.mp4 \ --device mps --mode PASS_NETWORK \ --ball-model-path data/football-ball-detection.ptRequires ball weights from
./setup.sh. Prefer a full clip for meaningful pass recall. Analytics default tracker isbotsort(--tracker bytetrack/botsort_nocmcavailable).Test plan
--mode PASS_NETWORKrenders without crash; ball attaches when detectedBALL_DETECTIONunchanged