mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 19:04:03 +08:00
Cleanup mipnerf implementation
This commit is contained in:
1 parent
6deb452825
commit
cc79708df7
7 files changed
+377
-16
No files matched your search
@@ -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"""
|
||||
|
||||
Reference in new issue
Block a user