• Docs >
  • Universal Image Quality Index
Shortcuts

Universal Image Quality Index

Module Interface

torchmetrics.UniversalImageQualityIndex[source]

alias of torchmetrics.image._deprecated._UniversalImageQualityIndex

Functional Interface

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

Wrapper for deprecated import.

>>> import torch
>>> preds = torch.rand([16, 1, 16, 16])
>>> target = preds * 0.75
>>> _universal_image_quality_index(preds, target)
tensor(0.9216)
Return type

Tensor