MCPcopy Create free account
hub / github.com/OpenMeshLab/MeshXL / _fetch_data

Method _fetch_data

datasets/sft/base_dataset.py:44–46  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

42 return processed
43
44 def _fetch_data(self, idx):
45 idx = idx % len(self.data)
46 return deepcopy(self.data[idx])
47
48 def __len__(self):
49 return len(self.data) * self.num_repeat

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected