mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
Fix the background color bug when exporting video with the "random" background option (#2831)
patch #2815
This commit is contained in:
1 parent
1bc5b424b4
commit
3f23e6efb2
1 file changed
+3
-1
@@ -222,7 +222,9 @@ class SplatfactoModel(Model):
|
|||||||
|
|
||||||
self.crop_box: Optional[OrientedBox] = None
|
self.crop_box: Optional[OrientedBox] = None
|
||||||
if self.config.background_color == "random":
|
if self.config.background_color == "random":
|
||||||
self.background_color = torch.rand(3)
|
self.background_color = torch.tensor(
|
||||||
|
[0.1490, 0.1647, 0.2157]
|
||||||
|
) # This color is the same as the default background color in Viser. This would only affect the background color when rendering.
|
||||||
else:
|
else:
|
||||||
self.background_color = get_color(self.config.background_color)
|
self.background_color = get_color(self.config.background_color)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user