From 2e3c3c179a4cbfba96c6ecfa6a9d1bb3d21dc569 Mon Sep 17 00:00:00 2001 From: Alex Jean Date: Thu, 13 Jun 2024 04:57:46 -0700 Subject: [PATCH] Background device (#3219) added to(self.device) for background_color when in eval mode for splatfacto --- nerfstudio/models/splatfacto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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":