fixes for nerf synthetic dataset (#1507)

* fixes for nerf synthetic dataset

* restore eval script

* fix format with black
This commit is contained in:
Ruilong Li(李瑞龙) authored and GitHub committed 2023-02-25 14:37:10 -08:00
1 parent 92c9cee4c7
commit 7dc7129cf8
4 files changed
+15 -2

No files matched your search

+6 -1
View File
@@ -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(