glenn-jocher commited on
Commit
ee0b3b2
·
unverified ·
1 Parent(s): 05aae17

Update benchmarks significant digits (#7103)

Browse files
Files changed (1) hide show
  1. utils/benchmarks.py +1 -1
utils/benchmarks.py CHANGED
@@ -67,7 +67,7 @@ def run(weights=ROOT / 'yolov5s.pt', # weights path
67
  result = val.run(data, w, batch_size, imgsz, plots=False, device=device, task='benchmark', half=half)
68
  metrics = result[0] # metrics (mp, mr, map50, map, *losses(box, obj, cls))
69
  speeds = result[2] # times (preprocess, inference, postprocess)
70
- y.append([name, metrics[3], speeds[1]]) # mAP, t_inference
71
  except Exception as e:
72
  LOGGER.warning(f'WARNING: Benchmark failure for {name}: {e}')
73
  y.append([name, None, None]) # mAP, t_inference
 
67
  result = val.run(data, w, batch_size, imgsz, plots=False, device=device, task='benchmark', half=half)
68
  metrics = result[0] # metrics (mp, mr, map50, map, *losses(box, obj, cls))
69
  speeds = result[2] # times (preprocess, inference, postprocess)
70
+ y.append([name, round(metrics[3], 4), round(speeds[1], 2)]) # mAP, t_inference
71
  except Exception as e:
72
  LOGGER.warning(f'WARNING: Benchmark failure for {name}: {e}')
73
  y.append([name, None, None]) # mAP, t_inference