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>
This commit is contained in:
Ruilong Li(李瑞龙)andRuilong Li authored and GitHub committed 2024-06-10 13:39:36 -07:00
1 parent d220600b8b
commit 4b61cb9e6d
1 file changed
+1
+1
View File
@@ -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(