feat: GDINO A+B — time-bounded search (9s vs 130s) + parameterized interval

This commit is contained in:
Accusys
2026-05-14 13:57:25 +08:00
parent 5a9b34f1c2
commit 159684331e
4 changed files with 82 additions and 18 deletions

View File

@@ -64,8 +64,19 @@ def run_judges(query, result, file_uuid):
print(f" ERROR: {str(e)[:60]}")
results.append({"agent": "MaskFormer", "score": 50, "reasoning": f"Judge error: {str(e)[:60]}", "details": {}})
# Grounding DINO — SKIP (too slow per-video search)
results.append({"agent": "GroundingDINO", "score": 50, "reasoning": "Skipped (too slow for full-video search)", "details": {}})
# Grounding DINO — time-bounded search
print(f" [{qid}] GDINO...", end="", flush=True)
try:
gd_result = gdino.score(
frames, prompt,
start_time=result.get("trace_start", 0),
end_time=result.get("trace_end", 0)
)
print(" done")
results.append(gd_result)
except Exception as e:
print(f" ERROR: {str(e)[:60]}")
results.append({"agent": "GroundingDINO", "score": 50, "reasoning": f"Judge error", "details": {}})
print(f" [{qid}] FaceNet...", end="", flush=True)
try: