mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-21 15:15:43 +08:00
Background device (#3219)
added to(self.device) for background_color when in eval mode for splatfacto
This commit is contained in:
1 parent
290f3fa028
commit
2e3c3c179a
1 file changed
+1
-1
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user