voc0712.py 文件源码

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

项目:ssd.pytorch 作者: amdegroot 项目源码 文件源码
def pull_anno(self, index):
        '''Returns the original annotation of image at index

        Note: not using self.__getitem__(), as any transformations passed in
        could mess up this functionality.

        Argument:
            index (int): index of img to get annotation of
        Return:
            list:  [img_id, [(label, bbox coords),...]]
                eg: ('001718', [('dog', (96, 13, 438, 332))])
        '''
        img_id = self.ids[index]
        anno = ET.parse(self._annopath % img_id).getroot()
        gt = self.target_transform(anno, 1, 1)
        return img_id[1], gt
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号