1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
- from torch import nn
- from super_gradients.training.losses import LabelSmoothingCrossEntropyLoss, ShelfNetOHEMLoss, \
- ShelfNetSemanticEncodingLoss, RSquaredLoss, SSDLoss, BCEDiceLoss, YoloXDetectionLoss, YoloXFastDetectionLoss, KDLogitsLoss, DiceCEEdgeLoss
- from super_gradients.training.losses.stdc_loss import STDCLoss
- LOSSES = {"cross_entropy": LabelSmoothingCrossEntropyLoss,
- "mse": nn.MSELoss,
- "r_squared_loss": RSquaredLoss,
- "shelfnet_ohem_loss": ShelfNetOHEMLoss,
- "shelfnet_se_loss": ShelfNetSemanticEncodingLoss,
- "yolox_loss": YoloXDetectionLoss,
- "yolox_fast_loss": YoloXFastDetectionLoss,
- "ssd_loss": SSDLoss,
- "stdc_loss": STDCLoss,
- "bce_dice_loss": BCEDiceLoss,
- "kd_loss": KDLogitsLoss,
- "dice_ce_edge_loss": DiceCEEdgeLoss,
- }
|