mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
RAdam + background color fix
This commit is contained in:
1 parent
ade3b632de
commit
4cccc9110d
2 files changed
+2
-2
No files matched your search
@@ -24,7 +24,7 @@ network:
|
|||||||
param_groups:
|
param_groups:
|
||||||
fields:
|
fields:
|
||||||
optimizer:
|
optimizer:
|
||||||
_target_: torch.optim.Adam
|
_target_: torch.optim.RAdam
|
||||||
lr: 0.0005
|
lr: 0.0005
|
||||||
scheduler:
|
scheduler:
|
||||||
_target_: mattport.nerf.optimizers.ExponentialDecaySchedule
|
_target_: mattport.nerf.optimizers.ExponentialDecaySchedule
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class RGBRenderer(nn.Module):
|
|||||||
TensorType[..., 3]: Outputs of rgb values.
|
TensorType[..., 3]: Outputs of rgb values.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
rgb = self.combine_rgb(rgb, weights)
|
rgb = self.combine_rgb(rgb, weights, background_color=self.background_color)
|
||||||
if not self.training:
|
if not self.training:
|
||||||
torch.clamp_(rgb, min=0.0, max=1.0)
|
torch.clamp_(rgb, min=0.0, max=1.0)
|
||||||
return rgb
|
return rgb
|
||||||
|
|||||||
Reference in new issue
Block a user