MCPcopy Create free account
hub / github.com/TEA-Lab/TwoByTwo / load_data

Function load_data

src/shape_assembly/datasets/dataloader/dataloader_A.py:28–33  ·  view source on GitHub ↗
(file_dir, cat_shape_dict)

Source from the content-addressed store, hash-verified

26from mesh_to_sdf import sample_sdf_near_surface
27
28def load_data(file_dir, cat_shape_dict):
29 with open(file_dir, 'r') as fin:
30 for l in fin.readlines():
31 shape_id, cat = l.rstrip().split()
32 cat_shape_dict[cat].append(shape_id)
33 return cat_shape_dict
34
35class OurDataset(data.Dataset):
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected