π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
make link work for PSNRLoss (#449)
Ir1dXDa144c8731d57
diff --git a/kornia/losses/psnr.py b/kornia/losses/psnr.pyindex 9f811ca84..c31476b03 100644--- a/kornia/losses/psnr.py+++ b/kornia/losses/psnr.py@@ -35,7 +35,7 @@ class PSNRLoss(nn.Module):def psnr_loss(input: torch.Tensor, target: torch.Tensor, max_val: float) -> torch.Tensor:r"""Function that computes PSNR- See :class:`~kornia.losses.PSNR` for details.+ See :class:`~kornia.losses.PSNRLoss` for details."""if not torch.is_tensor(input) or not torch.is_tensor(target):raise TypeError(f"Expected 2 torch tensors but got {type(input)} and {type(target)}")