(img1, img2)
| 12 | import torch |
| 13 | |
| 14 | def mse(img1, img2): |
| 15 | return (((img1 - img2)) ** 2).view(img1.shape[0], -1).mean(1, keepdim=True) |
| 16 | |
| 17 | def psnr(img1, img2): |
| 18 | mse = (((img1 - img2)) ** 2).view(img1.shape[0], -1).mean(1, keepdim=True) |
nothing calls this directly
no outgoing calls
no test coverage detected