Background device (#3219)

added to(self.device) for background_color when in eval mode for splatfacto
This commit is contained in:
Alex Jean authored and GitHub committed 2024-06-13 14:57:46 +03:00
1 parent 290f3fa028
commit 2e3c3c179a
1 file changed
+1 -1
+1 -1
View File
@@ -677,7 +677,7 @@ class SplatfactoModel(Model):
if self.training:
background = torch.rand(3, device=self.device)
else:
background = self.background_color
background = self.background_color.to(self.device)
elif self.config.background_color == "white":
background = torch.ones(3, device=self.device)
elif self.config.background_color == "black":