def load_data_list(self) -> List[dict]:
        """Load data list from COCO annotation file or person detection result
        file."""

        instance_list, image_list = self._load_annotations()

        if self.data_mode == 'topdown':
            data_list = self._get_topdown_data_infos(instance_list)
        else:
            data_list = self._get_bottomup_data_infos(instance_list,
                                                      image_list)

        return data_list
Load data list from COCO annotation file or person detection result
        file.
mmpose/mmpose/datasets/datasets/base/base_mocap_dataset.py