mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 18:44:21 +08:00
fix error with loss not defined
This commit is contained in:
parent
95793f5313
commit
47b1ef9898
@ -326,5 +326,5 @@ def robust_rgb_loss(rgb_gt,rgb_outputs,patch_size=16):
|
||||
# final_w[:,
|
||||
# (patch_size//2-patch_size//4):(patch_size//2+patch_size//4),
|
||||
# (patch_size//2-patch_size//4):(patch_size//2+patch_size//4)] = weight_r8[:,None,None]
|
||||
# loss = torch.mean(residuals.squeeze()*weight_r8[:,None,None])
|
||||
loss = torch.mean(residuals.squeeze()*weight_r8[:,None,None])
|
||||
return loss
|
||||
Loading…
Reference in New Issue
Block a user