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:
Koke_Cacao authored and GitHub committed 2023-02-27 10:40:17 -08:00
1 parent 955497fcb2
commit edb54602da
1 file changed
+1 -1
+1 -1
View File
@@ -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)