From 4b61cb9e6d47c79a16019254b93ced76ce430f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruilong=20Li=28=E6=9D=8E=E7=91=9E=E9=BE=99=29?= Date: Mon, 10 Jun 2024 13:39:36 -0700 Subject: [PATCH] Fix bug in SplatfactoModel when sh_degree is zero the color is not with sigmoid (#3207) * torch.compile -> torch_compile from misc * sigmoid on color when sh_degree==0 --------- Co-authored-by: Ruilong Li <397653553@qq.com> --- nerfstudio/models/splatfacto.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nerfstudio/models/splatfacto.py b/nerfstudio/models/splatfacto.py index 66113fc7e..702bdc507 100644 --- a/nerfstudio/models/splatfacto.py +++ b/nerfstudio/models/splatfacto.py @@ -728,6 +728,7 @@ class SplatfactoModel(Model): if self.config.sh_degree > 0: sh_degree_to_use = min(self.step // self.config.sh_degree_interval, self.config.sh_degree) else: + colors_crop = torch.sigmoid(colors_crop) sh_degree_to_use = None render, alpha, info = rasterization(