Shortcuts

Modified Panoptic Quality

Module Interface

torchmetrics.ModifiedPanopticQuality[source]

alias of _ModifiedPanopticQuality

Functional Interface

torchmetrics.functional.modified_panoptic_quality(preds, target, things, stuffs, allow_unknown_preds_category=False)[source]

Wrapper for deprecated import.

>>> from torch import tensor
>>> preds = tensor([[[0, 0], [0, 1], [6, 0], [7, 0], [0, 2], [1, 0]]])
>>> target = tensor([[[0, 1], [0, 0], [6, 0], [7, 0], [6, 0], [255, 0]]])
:rtype: :py:class:`~torch.Tensor`
>>> _modified_panoptic_quality(preds, target, things = {0, 1}, stuffs = {6, 7})
tensor(0.7667, dtype=torch.float64)