Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#378 Feature/sg 281 add kd notebook

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-281-add_kd_notebook
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  1. from torch import nn
  2. from super_gradients.training.losses import LabelSmoothingCrossEntropyLoss, ShelfNetOHEMLoss, \
  3. ShelfNetSemanticEncodingLoss, RSquaredLoss, SSDLoss, BCEDiceLoss, YoloXDetectionLoss, YoloXFastDetectionLoss, KDLogitsLoss, DiceCEEdgeLoss
  4. from super_gradients.training.losses.stdc_loss import STDCLoss
  5. LOSSES = {"cross_entropy": LabelSmoothingCrossEntropyLoss,
  6. "mse": nn.MSELoss,
  7. "r_squared_loss": RSquaredLoss,
  8. "shelfnet_ohem_loss": ShelfNetOHEMLoss,
  9. "shelfnet_se_loss": ShelfNetSemanticEncodingLoss,
  10. "yolox_loss": YoloXDetectionLoss,
  11. "yolox_fast_loss": YoloXFastDetectionLoss,
  12. "ssd_loss": SSDLoss,
  13. "stdc_loss": STDCLoss,
  14. "bce_dice_loss": BCEDiceLoss,
  15. "kd_loss": KDLogitsLoss,
  16. "dice_ce_edge_loss": DiceCEEdgeLoss,
  17. }
Discard
Tip!

Press p or to see the previous file or, n or to see the next file