mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 22:56:03 +08:00
Bug fix for SHRenderer() (#1526)
The current SHRenderer does not apply the activation function correctly due to a typo. Now it's fixed.
This commit is contained in:
1 parent
955497fcb2
commit
edb54602da
1 file changed
+1
-1
@@ -183,7 +183,7 @@ class SHRenderer(nn.Module):
|
||||
rgb = torch.sum(sh, dim=-1) + 0.5 # [..., num_samples, 3]
|
||||
|
||||
if self.activation is not None:
|
||||
self.activation(rgb)
|
||||
rgb = self.activation(rgb)
|
||||
|
||||
if not self.training:
|
||||
rgb = torch.nan_to_num(rgb)
|
||||
|
||||
Reference in new issue
Block a user