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

Method test_pcd

tests/cpp/kernel_region_gpu_test.py:93–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 self.assertEqual(len(in_maps), torch.prod(kernel_size).item())
92
93 def test_pcd(self):
94 coords, colors, pcd = load_file("1.ply")
95 kernel_size = torch.IntTensor([3, 3, 3])
96 dcoords = torch.from_numpy(np.floor(coords / 0.02)).int()
97 bcoords = batched_coordinates([dcoords]).to(0)
98 kernel_map, num, t = MinkowskiEngineTest._C.kernel_map_test(
99 bcoords, bcoords, kernel_size, 50, 128,
100 )
101 num_kernels = np.sum([len(a) for a in kernel_map[0]])
102 print(f"{num}\t{num_kernels}\t{t}")
103
104 def test_pcd2(self):
105 coords, colors, pcd = load_file("1.ply")

Callers

nothing calls this directly

Calls 2

load_fileFunction · 0.90
batched_coordinatesFunction · 0.90

Tested by

no test coverage detected