def test_laplacian_smoothing_uniform(self): """ Test Laplacian Smoothing with uniform weights. """ meshes = TestLaplacianSmoothing.init_meshes(10, 100, 300) # feats in list out = mesh_laplacian_smoothing(meshes, method="uniform") naive_out = TestLaplacianSmoothing.laplacian_smoothing_naive_uniform(meshes) self.assertTrue(torch.allclose(out, naive_out))
def test_laplacian_smoothing_cotcurv(self): """ Test Laplacian Smoothing with cotcurv weights. """ meshes = TestLaplacianSmoothing.init_meshes(10, 100, 300) # feats in list out = mesh_laplacian_smoothing(meshes, method="cotcurv") naive_out = TestLaplacianSmoothing.laplacian_smoothing_naive_cot( meshes, method="cotcurv") self.assertTrue(torch.allclose(out, naive_out))
def smooth(): mesh_laplacian_smoothing(meshes, method="cotcurv") torch.cuda.synchronize()