Shortcuts

Universal Image Quality Index

Module Interface

torchmetrics.UniversalImageQualityIndex[source]

alias of _UniversalImageQualityIndex

Functional Interface

torchmetrics.functional.universal_image_quality_index(preds, target, kernel_size=(11, 11), sigma=(1.5, 1.5), reduction='elementwise_mean')[source]

Wrapper for deprecated import.

>>> import torch
>>> preds = torch.rand([16, 1, 16, 16])
>>> target = preds * 0.75
:rtype: :py:class:`~torch.Tensor`
>>> _universal_image_quality_index(preds, target)
tensor(0.9216)