perf(unraid): fall back to official RTMDet-tiny
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user