panoptic_quality
panoptic_quality ¶
panoptic_quality(
true: ndarray,
pred: ndarray,
thresh: float = 0.5,
eps: float = 1e-08,
) -> Dict[str, float]
Compute the panoptic quality of a lebelled mask.
Parameters¶
true : np.ndarray
Ground truth (labelled mask). Shape (H, W).
pred : np.ndarray
Predicted (labelled mask). Shape (H, W).
thresh : float, default=0.5
Threshold for the iou to include the prediction as TP
eps : float, default=1e-8:
Epsilon to avoid zero div errors.
Returns¶
Dict[str, float]:
Dictionary containing the detection quality (dq), segmentation
quality (sq) and panoptic quality (pq) values.