mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-25 10:29:51 +08:00
fixes for nerf synthetic dataset (#1507)
* fixes for nerf synthetic dataset * restore eval script * fix format with black
This commit is contained in:
1 parent
92c9cee4c7
commit
7dc7129cf8
4 files changed
+15
-2
No files matched your search
@@ -120,6 +120,8 @@ class NerfactoModelConfig(ModelConfig):
|
||||
"""Whether use single jitter or not for the proposal networks."""
|
||||
predict_normals: bool = False
|
||||
"""Whether to predict normals or not."""
|
||||
disable_scene_contraction: bool = False
|
||||
"""Whether to disable scene contraction or not."""
|
||||
|
||||
|
||||
class NerfactoModel(Model):
|
||||
@@ -135,7 +137,10 @@ class NerfactoModel(Model):
|
||||
"""Set the fields and modules."""
|
||||
super().populate_modules()
|
||||
|
||||
scene_contraction = SceneContraction(order=float("inf"))
|
||||
if self.config.disable_scene_contraction:
|
||||
scene_contraction = None
|
||||
else:
|
||||
scene_contraction = SceneContraction(order=float("inf"))
|
||||
|
||||
# Fields
|
||||
self.field = TCNNNerfactoField(
|
||||
|
||||
Reference in new issue
Block a user