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

Class Dataset

datasets/dummy_dataset.py:7–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5from eval_utils.sample_generation import evaluate
6
7class Dataset:
8
9 def __init__(self, *args, **kwargs):
10 super().__init__()
11 self.eval_func = evaluate
12
13 def __len__(self):
14 return 10
15
16 def __getitem__(self, idx):
17 data_dict = {}
18 data_dict['shape_idx'] = np.asarray(idx).astype(np.int64)
19 return data_dict

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected