Skip to content

Commit e393d73

Browse files
authored
Update benchmarks significant digits (ultralytics#7103)
1 parent e0e4b05 commit e393d73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/benchmarks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def run(weights=ROOT / 'yolov5s.pt', # weights path
6767
result = val.run(data, w, batch_size, imgsz, plots=False, device=device, task='benchmark', half=half)
6868
metrics = result[0] # metrics (mp, mr, map50, map, *losses(box, obj, cls))
6969
speeds = result[2] # times (preprocess, inference, postprocess)
70-
y.append([name, metrics[3], speeds[1]]) # mAP, t_inference
70+
y.append([name, round(metrics[3], 4), round(speeds[1], 2)]) # mAP, t_inference
7171
except Exception as e:
7272
LOGGER.warning(f'WARNING: Benchmark failure for {name}: {e}')
7373
y.append([name, None, None]) # mAP, t_inference

0 commit comments

Comments
 (0)