mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 06:14:03 +08:00
Fix background_color to outputs assignment
This commit is contained in:
1 parent
4c51bd4755
commit
edd594c850
1 file changed
+1
-1
@@ -301,7 +301,7 @@ class NerfactoModel(Model):
|
||||
"accumulation": accumulation,
|
||||
"depth": depth,
|
||||
}
|
||||
if background_color is not None:
|
||||
if self.training and self.config.background_color == "random" and background_color is not None:
|
||||
outputs["background_color"] = background_color
|
||||
|
||||
if self.config.predict_normals:
|
||||
|
||||
Reference in new issue
Block a user