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

Method _preprocess_data

datasets/sft/base_dataset.py:33–42  ·  view source on GitHub ↗
(self, data_chunk)

Source from the content-addressed store, hash-verified

31 self.num_repeat = 1
32
33 def _preprocess_data(self, data_chunk):
34 processed = []
35 for data in data_chunk:
36 processed.append(
37 dict(
38 vertices = np.asarray(data['vertices']),
39 faces = np.asarray(data['faces']),
40 )
41 )
42 return processed
43
44 def _fetch_data(self, idx):
45 idx = idx % len(self.data)

Callers 4

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected