This commit is contained in:
Matt Tancik committed 2022-05-16 13:36:40 -07:00
1 parent cea1d115d2
commit 58dd2a7eee
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ def components_from_spherical_harmonics(levels: int, directions: TensorType[...,
num_components = levels**2
components = torch.zeros((*directions.shape[:-1], num_components)).to(directions.device)
assert levels > 0 and levels <= 5, f"SH levels must be in [1,4], got {levels}"
assert 1 <= levels <= 5, f"SH levels must be in [1,4], got {levels}"
assert directions.shape[-1] == 3, f"Direction input should have three dimensions. Got {directions.shape[-1]}"
x = directions[..., 0]
@@ -1,7 +1,6 @@
"""
Encoding Tests
"""
from multiprocessing.sharedctypes import Value
import pytest
import torch
from mattport.nerf.field_modules import encoding