examples/torch/object_detection/datasets/voc0712.py
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.

        Args:
            index (int): index of img to get annotation of
        Returns:
            list:  img_id, [[bbox coords, label_idx],...]]
                eg: ['001718', [[xmin, ymin, xmax, ymax, label_ind], ... ]]
        """
        img_name = self.ids[index]
        anno = ET.parse(self._annopath % img_name).getroot()
        _, gt_res = self.target_transform(None,
                                          datasets.VOCDetection.parse_voc_xml(
                                          datasets.VOCDetection(self.root), node=anno),
                                          pull=True)
        return img_name[1], gt_res
Returns the original annotation of image at index

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

        Args:
            index (int): index of img to get annotation of
        Returns:
            list:  img_id, [[bbox coords, label_idx],...]]
                eg: ['001718', [[xmin, ymin, xmax, ymax, label_ind], ... ]]
        
Returns the original annotation of image at index
Note: not using self.__getitem__(), as any transformations passed in
could mess up this functionality.
Returns the original annotation of image at index Note : not using self . __getitem__ () as any transformations passed in could mess up this functionality .
def pull_anno(self, index):
        img_name = self.ids[index]
        anno = ET.parse(self._annopath % img_name).getroot()
        _, gt_res = self.target_transform(None,
                                          datasets.VOCDetection.parse_voc_xml(
                                          datasets.VOCDetection(self.root), node=anno),
                                          pull=True)
        return img_name[1], gt_res
def pull_anno ( self , index ) : img_name = self . ids [ index ] anno = ET . parse ( self . _annopath % img_name ) . getroot ( ) _ , gt_res = self . target_transform ( None , datasets . VOCDetection . parse_voc_xml ( datasets . VOCDetection ( self . root ) , node = anno ) , pull = True ) return img_name [ 1 ] , gt_res
Returns the original annotation of image at index
Note: not using self.__getitem__(), as any transformations passed in
could mess up this functionality.
Returns the original annotation of image at index Note : not using self . __getitem__ () as any transformations passed in could mess up this functionality .
"""Returns the original annotation of image at index

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

        Args:
            index (int): index of img to get annotation of
        Returns:
            list:  img_id, [[bbox coords, label_idx],...]]
                eg: ['001718', [[xmin, ymin, xmax, ymax, label_ind], ... ]]
        """
None
list
self
index
index of img to get annotation of
index of img to get annotation of