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