From f934808698523465e7abb2d1fb0d290065def776 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 14 Dec 2023 10:35:44 -0500 Subject: [PATCH] validation --- benchmark.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/benchmark.py b/benchmark.py index 17ef494..68d8491 100644 --- a/benchmark.py +++ b/benchmark.py @@ -56,6 +56,9 @@ def run_benchmark(batch: int, extra: bool): mp = mp / 1024 / 1024 mps = mp / (t1 - t0) log.debug(f'SD-System-Info benchmark: batch={batch} time={t1-t0:.2f} steps={args["steps"]} its={its:.2f} mps={mps:.2f}') + if its > 300: + log.error(f'SD-System-Info benchmark: its={its:.2f} too high') + return 'error' return round(its, 2)