panoptic_quality
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.