Prepare raw data for the f'{idx'}-th data.
(self, idx: int)
| 68 | self.data_infos.append(self.load_anno(line)) |
| 69 | |
| 70 | def prepare_data(self, idx: int): |
| 71 | """"Prepare raw data for the f'{idx'}-th data.""" |
| 72 | results = copy.deepcopy(self.data_infos[idx]) |
| 73 | results['dataset_name'] = self.dataset_name |
| 74 | results['sample_idx'] = idx |
| 75 | return self.pipeline(results) |
| 76 | |
| 77 | def __len__(self): |
| 78 | """Return the length of current dataset.""" |