nthu.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:FastRcnnDetect 作者: karthkk 项目源码 文件源码
def evaluate_proposals_msr(self, all_boxes, output_dir):
        # for each image
        for im_ind, index in enumerate(self.image_index):
            filename = os.path.join(output_dir, index + '.txt')
            print 'Writing nthu results to file ' + filename
            with open(filename, 'wt') as f:
                dets = all_boxes[im_ind]
                if dets == []:
                    continue
                for k in xrange(dets.shape[0]):
                    f.write('{:f} {:f} {:f} {:f} {:.32f}\n'.format(dets[k, 0], dets[k, 1], dets[k, 2], dets[k, 3], dets[k, 4]))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号