delta.model.pixelwise_weighted_binary_crossentropy_seg#
- delta.model.pixelwise_weighted_binary_crossentropy_seg(seg_weights, logits)[source]#
Pixel-wise weighted binary cross-entropy loss.
The code is adapted from the Keras TF backend. (see their github).
- Parameters
- seg_weightsTensor
Stack of groundtruth segmentation masks + weight maps.
- logitsTensor
Predicted segmentation masks.
- Returns
- Tensor
Pixel-wise weight binary cross-entropy between inputs.