fast rcnn test.py 测试需要做的修改

来源:互联网 发布:java七牛上传图片demo 编辑:程序博客网 时间:2024/05/21 17:59
1.必须去改的

In VOCCode, inside the VOCdevkit folder, there will be a file called VOCinit.m ,就是在VOCcode中有个VOCinit.m,找到第81行,也就是这行:

VOCopts.classes={...
        'aeroplane'
        'bicycle'
        'bird'
        'boat'
        'bottle'
        'bus'
        'car'
        'cat'
        'chair'
        'cow'
        'diningtable'
        'dog'
        'horse'
        'motorbike'
        'person'
        'pottedplant'
        'sheep'
        'sofa'
        'train'
        'tvmonitor'};

所以你懂得,错误就在类别上,把VOCopts.classes改成自己需要是别的类别。

如:VOCopts.classes={'airplane'}

2.必须去做.mat数据,voc_2007_test.mat

3.必须对测试所需要的xml修改格式,把空格全部替换成tab,还要保持原有的缩进,原来一个空格就一个tab,两个空格就两个tab,否则出现问题 error (‘<%s> closed with <%s>’,parent,tag)

阅读全文
1 0
原创粉丝点击