mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 14:28:41 +08:00
fix error with loss not defined
This commit is contained in:
1 parent
95793f5313
commit
47b1ef9898
1 file changed
+1
-1
@@ -326,5 +326,5 @@ def robust_rgb_loss(rgb_gt,rgb_outputs,patch_size=16):
|
|||||||
# final_w[:,
|
# 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),
|
||||||
# (patch_size//2-patch_size//4):(patch_size//2+patch_size//4)] = weight_r8[:,None,None]
|
# (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
|
return loss
|
||||||
Reference in new issue
Block a user