Skip to content

Commit 00b942d

Browse files
committed
Remove unused code
1 parent 69d65b5 commit 00b942d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/utils/test_spherical_harmonics.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,12 @@ def test_spherical_harmonics_rotation_splatfacto(sh_degree):
7373
sh_coeffs = torch.rand(N, 3, num_coeffs)
7474
dirs = torch.rand(N, 3)
7575
dirs = dirs / torch.linalg.norm(dirs, dim=-1, keepdim=True)
76-
7776
assert dirs.shape == (N, 3)
78-
y_lm = gsplat_eval_sh_bases(num_coeffs, dirs)
79-
color_original = (sh_coeffs * y_lm[..., None, :]).sum(dim=-1)
8077

8178
rot_matrix = torch.tensor(ScR.random().as_matrix(), dtype=torch.float32)
8279
sh_coeffs_rotated = rotate_spherical_harmonics(rot_matrix, sh_coeffs, component_convention="-y,+z,-x")
8380
dirs_rotated = (rot_matrix @ dirs.T).T
8481
assert dirs_rotated.shape == (N, 3)
85-
y_lm_rotated = gsplat_eval_sh_bases(num_coeffs, dirs_rotated)
86-
color_rotated = (sh_coeffs_rotated * y_lm_rotated[..., None, :]).sum(dim=-1)
8782

8883
torch.testing.assert_close(
8984
gsplat_spherical_harmonics(sh_degree, coeffs=sh_coeffs.swapaxes(-1, -2), dirs=dirs),

0 commit comments

Comments
 (0)