目录
以下为自己学习所用,不足之处请在评论区指出。
一.结果分析
这里语令作用是计算每个图像 mAP,随后根据真实标注框与预测框的比较结果,展示或保存最高与最低 top-k 得分的预测图像。
1.1得到.pkl格式的测试结果
由于结果分析工具是对测试结果文件(.pkl文件)进行处理,因此这里先需要使用mmdetection中的tools/test.py工具获得.pkl结果,这里使用的命令语句如下。
python tools/test.py \ ${CONFIG_FILE} \ ${CHECKPOINT_FILE} \ [--out ${RESULT_FILE}] \ [--show]
这里我的配置文件绝对路径是C:\Users\13642\mmdetection\jupyter\test01_retinanet_r18_fpn_1x_coco.py
checkpoint文件绝对路径是C:\Users\13642\mmdetection\jupyter\epoch_12.pth
运行以下命令即可保存.pkl格式的测试结果文件。
python tools/test.py C:\Users\13642\mmdetection\jupyter\test01_retinanet_r18_fpn_1x_coco.py C:\Users\13642\mmdetection\jupyter\epoch_12.pth --show --out retinanet_r18_results.pkl
运行结果如下。