Prepare raw data for the f'{idx'}-th data.
(self, idx: int)
| 51 | pass |
| 52 | |
| 53 | def prepare_data(self, idx: int): |
| 54 | """"Prepare raw data for the f'{idx'}-th data.""" |
| 55 | results = copy.deepcopy(self.data_infos[idx]) |
| 56 | results['dataset_name'] = self.dataset_name |
| 57 | results['sample_idx'] = idx |
| 58 | return self.pipeline(results) |
| 59 | |
| 60 | def __len__(self): |
| 61 | """Return the length of current dataset.""" |