diff --git a/nerfstudio/models/splatfacto.py b/nerfstudio/models/splatfacto.py index 93b6d8b7b..fc9d85474 100644 --- a/nerfstudio/models/splatfacto.py +++ b/nerfstudio/models/splatfacto.py @@ -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":