feat: GDINO A+B — time-bounded search (9s vs 130s) + parameterized interval
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user