From b24835d55fb902d3f9ca5870b74ff79eea2751e8 Mon Sep 17 00:00:00 2001 From: "Jake Austin jake-austin@berkeley.edu" Date: Sat, 16 Sep 2023 07:48:37 +0000 Subject: [PATCH] More config --- nerfstudio/models/gaussian_splatting.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nerfstudio/models/gaussian_splatting.py b/nerfstudio/models/gaussian_splatting.py index e2d33e15e..d9bb48db5 100644 --- a/nerfstudio/models/gaussian_splatting.py +++ b/nerfstudio/models/gaussian_splatting.py @@ -76,7 +76,8 @@ class GaussianSplattingModelConfig(ModelConfig): use_diff_rast: bool = False # TODO (jake-austin): remove gradient_threshold: float = 0.0002 min_opacity: float = 0.005 - scene_extent: float = 2.6 + scene_extent: float = 2.0 + max_sh_degree: int = 3 class GaussianSplattingModel(Model): """Gaussian Splatting model @@ -92,7 +93,7 @@ class GaussianSplattingModel(Model): def populate_modules(self): # TODO (jake-austin): clean this up, this is transplanted code across all the implementation functions self.active_sh_degree = 0 - self.max_sh_degree = 3 + self.max_sh_degree = self.config.max_sh_degree self._xyz = torch.empty(0) self._features_dc = torch.empty(0)