Cleanup mipnerf implementation

This commit is contained in:
Matt Tancik authored and Matthew Tancik committed 2022-06-09 17:26:58 -07:00
1 parent 6deb452825
commit cc79708df7
7 files changed
+377 -16

No files matched your search

+8
View File
@@ -48,6 +48,10 @@ def test_nerf_encoder():
assert encoded.shape[-1] == out_dim
assert torch.min(encoded) == 0
# Test integrated posenc
covs = torch.ones((2, 3, in_dim, in_dim))
encoded = encoder(in_tensor, covs=covs)
def test_rff_encoder():
"""Test RFF encoder"""
@@ -64,6 +68,10 @@ def test_rff_encoder():
encoded = encoder(in_tensor)
assert encoded.shape[-1] == out_dim
# Test integrated encoding
covs = torch.ones((2, 3, in_dim, in_dim))
encoded = encoder(in_tensor, covs=covs)
def test_tensor_vm_encoder():
"""Test TensorVM encoder"""