mmyolo的tools/analysis_tools文件夹里面有如下文件:
以model文件yolov5_s-v61_syncbn_fast_8xb16-300e_coco.py,checkpoints文件yolov5_s-v61_syncbn_fast_8xb16-300e_coco_20220918_084700-86e02187.pth为例,看各个文件都有什么分析效果。
benchmark.py文件
在终端输入代码:
python .\tools\analysis_tools\benchmark.py .\yolov5_s-v61_syncbn_fast_8xb16-300e_coco.py .\yolov5_s-v61_syncbn_fast_8xb16-300e_coco_20220918_084700-86e02187.pth
得到如下结果:
benchmark文件显示指标:fps,times per image;最后显示测试的overall fps和average times per image。