yolov5模型的Average forward time 和Average NMS time和Average inference time去哪里找这些数据
时间: 2023-07-10 08:05:09 浏览: 182
这些数据可以在运行Yolov5模型时的控制台输出中找到。在控制台输出中,会显示每个batch的forward time、NMS time以及inference time,最后会给出平均值。以下是一个示例:
```
Class Images Targets P R mAP@.5 mAP@.5:.95: 100%|██████████| 1/1 [00:00<00:00, 1.84it/s]
all 4 20 0.838 0.900 0.874 0.668
forward: 133.96ms | NMS: 0.00ms | inference: 133.96ms | total: 133.96ms
forward: 133.91ms | NMS: 0.00ms | inference: 133.91ms | total: 133.91ms
forward: 133.93ms | NMS: 0.00ms | inference: 133.93ms | total: 133.93ms
forward: 133.98ms | NMS: 0.00ms | inference: 133.98ms | total: 133.98ms
Speed: 12.4/1.0/13.4 ms inference/NMS/total per image at shape (1, 3, 640, 640)
```
在上面的示例中,可以看到平均forward time为133.95ms,平均NMS time为0.00ms,平均inference time为133.95ms。
阅读全文