def get_ann_info(self, idx):
    'Get COCO annotation by index.\n        Args:\n            idx (int): Index of data.\n        Returns:\n            dict: Annotation info of specified index.\n        '
    img_id = self.data_infos[idx]['id']
    ann_ids = self.coco.get_ann_ids(img_ids=[img_id])
    ann_info = self.coco.load_anns(ann_ids)
    return self._parse_ann_info(self.data_infos[idx], ann_info)
Get COCO annotation by index.
Args:
    idx (int): Index of data.
Returns:
    dict: Annotation info of specified index.
def get_ann_info(self, idx):
    'Get COCO annotation by index.\n        Args:\n            idx (int): Index of data.\n        Returns:\n            dict: Annotation info of specified index.\n        '
    img_id = self.data_infos[idx]['id']
    ann_ids = self.coco.get_ann_ids(img_ids=[img_id])
    ann_info = self.coco.load_anns(ann_ids)
    return self._parse_ann_info(self.data_infos[idx], ann_info)