delta.model.unstack_acc#

delta.model.unstack_acc(seg_weights, logits)[source]#

Compute binary accuracy from a stacked tensor with mask and weight map.

Parameters
seg_weightsTensor

Stack of groundtruth segmentation masks + weight maps.

logitsTensor

Predicted segmentation masks.

Returns
Tensor

Binary prediction accuracy.