__init__.py 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. from .accuracy import Accuracy, accuracy
  3. from .ae_loss import AssociativeEmbeddingLoss
  4. from .balanced_l1_loss import BalancedL1Loss, balanced_l1_loss
  5. from .cross_entropy_loss import (CrossEntropyLoss, binary_cross_entropy,
  6. cross_entropy, mask_cross_entropy)
  7. from .dice_loss import DiceLoss
  8. from .focal_loss import FocalLoss, sigmoid_focal_loss
  9. from .gaussian_focal_loss import GaussianFocalLoss
  10. from .gfocal_loss import DistributionFocalLoss, QualityFocalLoss
  11. from .ghm_loss import GHMC, GHMR
  12. from .iou_loss import (BoundedIoULoss, CIoULoss, DIoULoss, EIoULoss, GIoULoss,
  13. IoULoss, bounded_iou_loss, iou_loss)
  14. from .kd_loss import KnowledgeDistillationKLDivLoss
  15. from .mse_loss import MSELoss, mse_loss
  16. from .pisa_loss import carl_loss, isr_p
  17. from .seesaw_loss import SeesawLoss
  18. from .smooth_l1_loss import L1Loss, SmoothL1Loss, l1_loss, smooth_l1_loss
  19. from .utils import reduce_loss, weight_reduce_loss, weighted_loss
  20. from .varifocal_loss import VarifocalLoss
  21. __all__ = [
  22. 'accuracy', 'Accuracy', 'cross_entropy', 'binary_cross_entropy',
  23. 'mask_cross_entropy', 'CrossEntropyLoss', 'sigmoid_focal_loss',
  24. 'FocalLoss', 'smooth_l1_loss', 'SmoothL1Loss', 'balanced_l1_loss',
  25. 'BalancedL1Loss', 'mse_loss', 'MSELoss', 'iou_loss', 'bounded_iou_loss',
  26. 'IoULoss', 'BoundedIoULoss', 'GIoULoss', 'DIoULoss', 'CIoULoss',
  27. 'EIoULoss', 'GHMC', 'GHMR', 'reduce_loss', 'weight_reduce_loss',
  28. 'weighted_loss', 'L1Loss', 'l1_loss', 'isr_p', 'carl_loss',
  29. 'AssociativeEmbeddingLoss', 'GaussianFocalLoss', 'QualityFocalLoss',
  30. 'DistributionFocalLoss', 'VarifocalLoss', 'KnowledgeDistillationKLDivLoss',
  31. 'SeesawLoss', 'DiceLoss'
  32. ]