博主的测试代码出错
http://www.th7.cn/system/lin/201706/216109.shtml
我按照这个博客里的方法去修改我的selective search,不能成功。
博主的CarFaceTest.py代码:
obj_proposals = sio.loadmat(boxFileName)['all_boxes']这行代码,打印出obj_proposals,可看到:
将代码改成obj_proposals = sio.loadmat(boxFileName)['all_boxes'][0]再打印:
最终发现obj_proposals = sio.loadmat(boxFileName)['all_boxes'][0][0]这种改法才是正确,也只有这种格式才符合测试的矩阵格式:
个人感觉可能是用的ss和博主的不一样,生成的.mat数据格式也不一样,所以读取.mat文件的时候需要改一改
百度搜:Ubuntu14.04下Fast-rcnn训练自己的数据