Skip to content

Commit

Permalink
Update benchmarks significant digits (ultralytics#7103)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Mar 22, 2022
1 parent e0e4b05 commit e393d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e393d73

Please sign in to comment.