objdetlosses
objdetlosses ¶
losses for object detection
Classes¶
CombinationLoss ¶
Bases: Loss
Wrapper to combine both the losses
Source code in niceml/dlframeworks/keras/losses/objdetlosses.py
RetinaNetBoxLoss ¶
Bases: Loss
Implements Smooth L1 loss
Source code in niceml/dlframeworks/keras/losses/objdetlosses.py
Functions¶
call ¶
Parameters¶
y_true: np.ndarray with shape (count_anchors x 4+1 + num_classes) y_pred: np.ndarray with shape (count_anchors x 4 + num_classes)
Source code in niceml/dlframeworks/keras/losses/objdetlosses.py
RetinaNetClsLoss ¶
Bases: Loss
Implements Focal loss
Source code in niceml/dlframeworks/keras/losses/objdetlosses.py
Functions¶
call ¶
Parameters¶
y_true: np.ndarray with shape (count_anchors x 4+1 + num_classes) y_pred: np.ndarray with shape (count_anchors x 4 + num_classes)