Merge branch 'master' into vanilla_nerf_implementation

This commit is contained in:
Ethan Weber committed 2022-04-20 03:27:52 +00:00
commit 7ff63fe0be
3 files changed
+36 -5

No files matched your search

@@ -1,5 +1,5 @@
"""
Render Head Tests
Field output tests
"""
import pytest
import torch
@@ -9,7 +9,7 @@ from mattport.nerf.field_modules import field_heads
def test_field_output():
"""Test rgb render head"""
"""Test render output"""
in_dim = 6
out_dim = 4
activation = nn.ReLU()
@@ -26,7 +26,7 @@ def test_field_output():
assert y.shape[-1] == out_dim
def test_density_head():
def test_density_output():
"""Test rgb output"""
in_dim = 6
density_head = field_heads.DensityFieldHead(in_dim)
@@ -41,7 +41,7 @@ def test_density_head():
assert y.shape[-1] == 1
def test_rgb_head():
def test_rgb_output():
"""Test rgb output"""
in_dim = 6
rgb_head = field_heads.RGBFieldHead(in_dim)