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

all_losses.py 596 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  1. from torch import nn
  2. from super_gradients.training.losses import LabelSmoothingCrossEntropyLoss, YoLoV3DetectionLoss, ShelfNetOHEMLoss, \
  3. ShelfNetSemanticEncodingLoss, RSquaredLoss, YoLoV5DetectionLoss, SSDLoss
  4. LOSSES = {"cross_entropy": LabelSmoothingCrossEntropyLoss,
  5. "mse": nn.MSELoss,
  6. "r_squared_loss": RSquaredLoss,
  7. "detection_loss": YoLoV3DetectionLoss,
  8. "shelfnet_ohem_loss": ShelfNetOHEMLoss,
  9. "shelfnet_se_loss": ShelfNetSemanticEncodingLoss,
  10. "yolo_v5_loss": YoLoV5DetectionLoss,
  11. "ssd_loss": SSDLoss,
  12. }
Tip!

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

Comments

Loading...