Skip to content

Commit

Permalink
fix bug in MSE color mean loss
Browse files Browse the repository at this point in the history
  • Loading branch information
cuttle-fish-my committed May 19, 2023
1 parent c94187d commit 9c4f8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def p_losses(denoise_model, img, R, T, K, logsnr, noise=None, loss_type="l2", co
else:
raise NotImplementedError()

rec_img = reconstruct_z_start(z_noisy, predicted_noise, logsnr.to(dev()))
rec_img = reconstruct_z_start(z_noisy.to(dev()), predicted_noise, logsnr.to(dev()))
img_color_mean = torch.mean(z, dim=(2, 3))
rec_color_mean = torch.mean(rec_img, dim=(2, 3)).to(dev())

Expand Down

0 comments on commit 9c4f8a7

Please sign in to comment.