MCPcopy Index your code
hub / github.com/ActiveVisionLab/DFNet / psnr

Function psnr

script/models/metrics.py:12–13  ·  view source on GitHub ↗
(image_pred, image_gt, valid_mask=None, reduction='mean')

Source from the content-addressed store, hash-verified

10 return value
11
12def psnr(image_pred, image_gt, valid_mask=None, reduction='mean'):
13 return -10*torch.log10(mse(image_pred, image_gt, valid_mask, reduction))
14
15def ssim(image_pred, image_gt, reduction='mean'):
16 """

Callers

nothing calls this directly

Calls 1

mseFunction · 0.85

Tested by

no test coverage detected