From ee0b3b2a953bd50ba29b39119a09ef9521596416 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 22 Mar 2022 18:02:35 +0100 Subject: [PATCH] Update benchmarks significant digits (#7103) --- utils/benchmarks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/benchmarks.py b/utils/benchmarks.py index bdbbdc43b639..446248c03f68 100644 --- a/utils/benchmarks.py +++ b/utils/benchmarks.py @@ -67,7 +67,7 @@ def run(weights=ROOT / 'yolov5s.pt', # weights path result = val.run(data, w, batch_size, imgsz, plots=False, device=device, task='benchmark', half=half) metrics = result[0] # metrics (mp, mr, map50, map, *losses(box, obj, cls)) speeds = result[2] # times (preprocess, inference, postprocess) - y.append([name, metrics[3], speeds[1]]) # mAP, t_inference + y.append([name, round(metrics[3], 4), round(speeds[1], 2)]) # mAP, t_inference except Exception as e: LOGGER.warning(f'WARNING: Benchmark failure for {name}: {e}') y.append([name, None, None]) # mAP, t_inference