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

Function load_file

tests/python/common.py:36–45  ·  view source on GitHub ↗
(file_name)

Source from the content-addressed store, hash-verified

34
35
36def load_file(file_name):
37 try:
38 import open3d as o3d
39 except ImportError:
40 raise ImportError("Please install open3d with `pip install open3d`.")
41
42 pcd = o3d.io.read_point_cloud(file_name)
43 coords = np.array(pcd.points)
44 colors = np.array(pcd.colors)
45 return coords, colors, pcd
46
47
48def get_coords(data):

Callers 15

test_decompositionMethod · 0.90
test_sumMethod · 0.90
test_baselineMethod · 0.90
network_speed.pyFile · 0.90
test_forwardMethod · 0.90
test_backwardMethod · 0.90
test_pcdMethod · 0.90
test_networkMethod · 0.90
test_network_deviceMethod · 0.90
sliceMethod · 0.90
slice_no_duplicateMethod · 0.90

Calls

no outgoing calls

Tested by 9

test_decompositionMethod · 0.72
test_sumMethod · 0.72
test_baselineMethod · 0.72
test_forwardMethod · 0.72
test_backwardMethod · 0.72
test_pcdMethod · 0.72
test_networkMethod · 0.72
test_network_deviceMethod · 0.72