(self)
| 96 | ) |
| 97 | |
| 98 | def test_pcd(self): |
| 99 | coords, colors, pcd = load_file("1.ply") |
| 100 | voxel_size = 0.02 |
| 101 | colors = torch.from_numpy(colors) |
| 102 | bcoords = batched_coordinates([coords / voxel_size]) |
| 103 | tfield = TensorField(colors, bcoords) |
| 104 | |
| 105 | self.assertTrue(len(tfield) == len(colors)) |
| 106 | stensor = tfield.sparse() |
| 107 | print(stensor) |
| 108 | |
| 109 | def test_network(self): |
| 110 | coords, colors, pcd = load_file("1.ply") |
nothing calls this directly
no test coverage detected