(self)
| 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") |
nothing calls this directly
no test coverage detected