Advertisement

使用mmdetection测试VOC数据集

阅读量:

最近在学习用mmdetection做交通标志识别的项目,用的是faster-rcnn的配置,由于我的数据集是VOC格式的,mmdetection默认的数据集是COCO格式,把配置改了之后(把配置从coco格式改成voc格式可以参考这篇https://www.cnblogs.com/beeblog72/p/12076562.html)训练也成功了,但是运行test.py就一直出问题。
我运行的命令如下:

复制代码
     python tools/test.py configs/faster_rcnn_r101_fpn_1x.py /home/kesun/mmdetection/work_dirs/faster_rcnn_r101_fpn_1x/jtbz/latest.pth --out jtbzresults.pkl --eval bbox
     #配置文件是configs/faster_rcnn_r101_fpn_1x.py 
    #训练好的模型/latest.pth
    #存储测试的结果tbzresults.pkl 

出现的问题如下图: 这个问题看起来就是被误配置成了COCO格式。 但是实际上,在配置文件中我已经将其正确设置为VOC格式。

![在这里插入图片描述](https://ad.itadn.com/c/weblog/blog-img/i

全部评论 (0)

还没有任何评论哟~