MCPcopy Create free account
hub / github.com/MotrixLab/insactor / prepare_data

Method prepare_data

diffplanner/datasets/base_dataset.py:67–72  ·  view source on GitHub ↗

Prepare raw data for the f'{idx'}-th data.

(self, idx: int)

Source from the content-addressed store, hash-verified

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."""

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected