mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-27 11:30:11 +08:00
Update render_heads to use Module class
This commit is contained in:
1 parent
4b131d4358
commit
03738b1066
3 files changed
+33
-15
No files matched your search
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
Render Head Tests
|
||||
"""
|
||||
from mattport.nerf.modules import render_heads
|
||||
|
||||
|
||||
def test_density_head():
|
||||
"""Test rgb render head"""
|
||||
in_dim = 6
|
||||
density_head = render_heads.DensityHead(in_dim)
|
||||
assert density_head.get_out_dim() == 1
|
||||
|
||||
|
||||
def test_rgb_head():
|
||||
"""Test rgb render head"""
|
||||
in_dim = 6
|
||||
rgb_head = render_heads.RGBHead(in_dim)
|
||||
assert rgb_head.get_out_dim() == 3
|
||||
Reference in new issue
Block a user