fix error with loss not defined

This commit is contained in:
machenmusik committed 2023-02-09 10:26:15 -05:00
1 parent 95793f5313
commit 47b1ef9898
1 file changed
+1 -1
+1 -1
View File
@@ -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