mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-28 12:00:02 +08:00
merge populate functions (#353)
This commit is contained in:
1 parent
28d5b3bda1
commit
fcba56b9b6
8 files changed
+40
-63
No files matched your search
@@ -41,8 +41,11 @@ class SemanticNerfModel(NeRFModel):
|
||||
self.stuff_colors = semantics.stuff_colors
|
||||
super().__init__(config=config, **kwargs)
|
||||
|
||||
def populate_fields(self):
|
||||
"""Set the fields."""
|
||||
def populate_modules(self):
|
||||
"""Set the fields and modules"""
|
||||
super().populate_modules()
|
||||
|
||||
# setting up fields
|
||||
position_encoding = NeRFEncoding(
|
||||
in_dim=3, num_frequencies=10, min_freq_exp=0.0, max_freq_exp=8.0, include_input=True
|
||||
)
|
||||
@@ -56,9 +59,6 @@ class SemanticNerfModel(NeRFModel):
|
||||
num_semantic_classes, position_encoding=position_encoding, direction_encoding=direction_encoding
|
||||
)
|
||||
|
||||
def populate_misc_modules(self):
|
||||
super().populate_misc_modules()
|
||||
|
||||
# renderers
|
||||
self.renderer_semantic = SemanticRenderer()
|
||||
|
||||
|
||||
Reference in new issue
Block a user