semseglosses
semseglosses ¶
Module for focal loss for semantic segmentation
Classes¶
SemSegFocalLoss ¶
Bases: Loss
Implements Focal loss
initialize SemSegFocalLoss parameters
Source code in niceml/dlframeworks/keras/losses/semseglosses.py
Functions¶
call ¶
Calculate SemSegFocalLoss based on prediction and ground-truth array
Parameters:
-
y_true
–np.ndarray with shape (batch_size x height x width x num_classes)
-
y_pred
–np.ndarray with shape (batch_size x height x width x num_classes)
Returns:
-
–
Focal loss