vis4d.op.loss.seg_cross_entropy_loss¶
Segmentation cross entropy loss.
Classes
|
Segmentation cross entropy loss class. |
- class SegCrossEntropyLoss(reducer=<function mean_loss>)[source]¶
Segmentation cross entropy loss class.
Wrapper for nn.CrossEntropyLoss that additionally clips the output to the target size and converts the target mask tensor to long.
Creates an instance of the class.
- Parameters:
reducer (LossReducer) – Reducer for the loss function. Defaults to mean_loss.