Skip to content

Commit

Permalink
Fix the background color bug when exporting video with the "random" b…
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinXu02 authored Jan 27, 2024
1 parent 1bc5b42 commit 3f23e6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nerfstudio/models/splatfacto.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ def populate_modules(self):

self.crop_box: Optional[OrientedBox] = None
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:
self.background_color = get_color(self.config.background_color)

Expand Down

0 comments on commit 3f23e6e

Please sign in to comment.