π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Add doc
ananyamukh65c9389f5285f
diff --git a/kornia/losses/psnr.py b/kornia/losses/psnr.pyindex 94e349e52..2acd106aa 100644--- a/kornia/losses/psnr.py+++ b/kornia/losses/psnr.py@@ -4,7 +4,9 @@ from torch.nn.functional import mse_lossclass PSNRLoss(nn.Module):- r"""Creates a criterion that calculates the PSNR between 2 images.+ r"""Creates a criterion that calculates the PSNR between 2 images. Given an m x n image,+ .. math::+ \text{MSE}(I,T) = \frac{1}{m\,n}\sum_{i=0}^{m-1}\sum_{j=0}^{n-1} [I(i,j) - T(i,j)]^2Arguments:max_val (float): Maximum value of input