MCPcopy Create free account
hub / github.com/NVIDIA/MinkowskiEngine / load_file

Function load_file

tests/python/network_speed.py:69–77  ·  view source on GitHub ↗
(file_name, voxel_size)

Source from the content-addressed store, hash-verified

67
68
69def load_file(file_name, voxel_size):
70 pcd = o3d.io.read_point_cloud(file_name)
71 coords = torch.from_numpy(np.array(pcd.points))
72 feats = torch.from_numpy(np.array(pcd.colors)).float()
73
74 quantized_coords = torch.floor(coords / voxel_size).int()
75 inds, inverse_inds = quantize(quantized_coords)
76
77 return quantized_coords[inds], feats[inds], pcd
78
79
80def forward(coords, colors, model):

Callers

nothing calls this directly

Calls 2

floatMethod · 0.80
quantizeFunction · 0.70

Tested by

no test coverage detected