mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +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
@@ -70,12 +70,12 @@ class NGPModel(Model):
|
||||
)
|
||||
]
|
||||
|
||||
def populate_fields(self):
|
||||
"""Set the fields."""
|
||||
def populate_modules(self):
|
||||
"""Set the fields and modules."""
|
||||
super().populate_modules()
|
||||
# torch or tiny-cuda-nn version
|
||||
self.field = field_implementation_to_class[self.config.field_implementation](self.scene_bounds.aabb)
|
||||
|
||||
def populate_misc_modules(self):
|
||||
# samplers
|
||||
self.sampler = NGPSpacedSampler(num_samples=self.config.num_samples, density_field=self.density_field)
|
||||
|
||||
|
||||
Reference in new issue
Block a user