MCPcopy Create free account
hub / github.com/CodeGoat24/UniGenBench / load_completed_results

Function load_completed_results

eval/src/eval_common.py:459–474  ·  view source on GitHub ↗

Load previously completed results from a JSONL progress file.

(jsonl_path)

Source from the content-addressed store, hash-verified

457# ============================================================
458
459def load_completed_results(jsonl_path):
460 """Load previously completed results from a JSONL progress file."""
461 completed = {}
462 if not os.path.exists(jsonl_path):
463 return completed
464 with open(jsonl_path, "r", encoding="utf-8") as f:
465 for line in f:
466 line = line.strip()
467 if not line:
468 continue
469 try:
470 row = json.loads(line)
471 completed[row["img_path"]] = row
472 except (json.JSONDecodeError, KeyError):
473 continue
474 return completed
475
476
477# ============================================================

Callers 1

run_evaluationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected