Zhen Ye Claude Opus 4.6 commited on
Commit
624478a
Β·
1 Parent(s): a2ca6f9

feat: Add LLM post-processing relevance gate for broad detection

Browse files

Move LLM's role from pre-processing (choosing detector classes) to
post-processing (filtering detected objects against mission intent).
Fast-path (comma-separated labels) is unchanged. LLM-path now detects
broadly (all COCO classes or domain-expanded queries), then asks GPT
once on frame 0 which labels are mission-relevant, caching the result
for deterministic filtering on all subsequent frames.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

5 files changed +228 -36
Files changed (5)
app.py+6-5
inference.py+81-28
utils/mission_parser.py+46
utils/relevance.py+88-3
utils/schemas.py+7