Load annotations from ``ann_file`` to ``data_infos``
(self)
| 57 | |
| 58 | |
| 59 | def load_annotations(self): |
| 60 | """Load annotations from ``ann_file`` to ``data_infos``""" |
| 61 | self.data_infos = [] |
| 62 | for line in open(self.ann_file, 'r').readlines()[:]: |
| 63 | line = line.strip() |
| 64 | self.data_infos.append(self.load_anno(line)) |
| 65 | |
| 66 | |
| 67 | def prepare_data(self, idx: int): |