perf(unraid): fall back to official RTMDet-tiny

This commit is contained in:
Codex
2026-08-15 10:07:58 -07:00
parent 2d345c21d1
commit 44b3bc5d2b
4 changed files with 15 additions and 10 deletions
@@ -18,7 +18,7 @@ def percentile(values: list[float], p: float) -> float:
def run_offline_benchmark(models, threshold: float, max_people: int) -> None:
path = "/logs/offline-benchmark.json"
path = "/logs/offline-benchmark-" + os.getenv("DETECTOR_NAME", "unknown") + ".json"
if os.path.exists(path):
return
try:
@@ -48,4 +48,3 @@ def run_offline_benchmark(models, threshold: float, max_people: int) -> None:
with open(path, "w", encoding="utf-8") as fh:
json.dump({"error": f"{type(exc).__name__}: {str(exc)[:240]}", "source_url": DEMO_URL,
"image_retained": False}, fh, indent=2)