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

#406 Feature/SG 293 - Add register loss

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-293-register_loss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
  1. class Losses:
  2. """Static class holding all the supported loss names"""""
  3. CROSS_ENTROPY = "cross_entropy"
  4. MSE = "mse"
  5. R_SQUARED_LOSS = "r_squared_loss"
  6. SHELFNET_OHEM_LOSS = "shelfnet_ohem_loss"
  7. SHELFNET_SE_LOSS = "shelfnet_se_loss"
  8. YOLOX_LOSS = "yolox_loss"
  9. YOLOX_FAST_LOSS = "yolox_fast_loss"
  10. SSD_LOSS = "ssd_loss"
  11. STDC_LOSS = "stdc_loss"
  12. BCE_DICE_LOSS = "bce_dice_loss"
  13. KD_LOSS = "kd_loss"
  14. DICE_CE_EDGE_LOSS = "dice_ce_edge_loss"
  15. class Metrics:
  16. """Static class holding all the supported metric names"""""
  17. ACCURACY = 'Accuracy'
  18. TOP5 = 'Top5'
  19. DETECTION_METRICS = 'DetectionMetrics'
  20. IOU = 'IoU'
  21. BINARY_IOU = "BinaryIOU"
  22. DICE = "Dice"
  23. BINARY_DICE = "BinaryDice"
  24. PIXEL_ACCURACY = 'PixelAccuracy'
  25. class Transforms:
  26. """Static class holding all the supported transform names"""""
  27. # From SG
  28. SegRandomFlip = "SegRandomFlip"
  29. SegResize = "SegResize"
  30. SegRescale = "SegRescale"
  31. SegRandomRescale = "SegRandomRescale"
  32. SegRandomRotate = "SegRandomRotate"
  33. SegCropImageAndMask = "SegCropImageAndMask"
  34. SegRandomGaussianBlur = "SegRandomGaussianBlur"
  35. SegPadShortToCropSize = "SegPadShortToCropSize"
  36. SegColorJitter = "SegColorJitter"
  37. DetectionMosaic = "DetectionMosaic"
  38. DetectionRandomAffine = "DetectionRandomAffine"
  39. DetectionMixup = "DetectionMixup"
  40. DetectionHSV = "DetectionHSV"
  41. DetectionHorizontalFlip = "DetectionHorizontalFlip"
  42. DetectionPaddedRescale = "DetectionPaddedRescale"
  43. DetectionTargetsFormat = "DetectionTargetsFormat"
  44. DetectionTargetsFormatTransform = "DetectionTargetsFormatTransform"
  45. RandomResizedCropAndInterpolation = "RandomResizedCropAndInterpolation"
  46. RandAugmentTransform = "RandAugmentTransform"
  47. Lighting = "Lighting"
  48. RandomErase = "RandomErase"
  49. # From torch
  50. Compose = "Compose"
  51. ToTensor = "ToTensor"
  52. PILToTensor = "PILToTensor"
  53. ConvertImageDtype = "ConvertImageDtype"
  54. ToPILImage = "ToPILImage"
  55. Normalize = "Normalize"
  56. Resize = "Resize"
  57. CenterCrop = "CenterCrop"
  58. Pad = "Pad"
  59. Lambda = "Lambda"
  60. RandomApply = "RandomApply"
  61. RandomChoice = "RandomChoice"
  62. RandomOrder = "RandomOrder"
  63. RandomCrop = "RandomCrop"
  64. RandomHorizontalFlip = "RandomHorizontalFlip"
  65. RandomVerticalFlip = "RandomVerticalFlip"
  66. RandomResizedCrop = "RandomResizedCrop"
  67. FiveCrop = "FiveCrop"
  68. TenCrop = "TenCrop"
  69. LinearTransformation = "LinearTransformation"
  70. ColorJitter = "ColorJitter"
  71. RandomRotation = "RandomRotation"
  72. RandomAffine = "RandomAffine"
  73. Grayscale = "Grayscale"
  74. RandomGrayscale = "RandomGrayscale"
  75. RandomPerspective = "RandomPerspective"
  76. RandomErasing = "RandomErasing"
  77. GaussianBlur = "GaussianBlur"
  78. InterpolationMode = "InterpolationMode"
  79. RandomInvert = "RandomInvert"
  80. RandomPosterize = "RandomPosterize"
  81. RandomSolarize = "RandomSolarize"
  82. RandomAdjustSharpness = "RandomAdjustSharpness"
  83. RandomAutocontrast = "RandomAutocontrast"
  84. RandomEqualize = "RandomEqualize"
  85. class Optimizers:
  86. """Static class holding all the supported optimizer names"""""
  87. SGD = "SGD"
  88. ADAM = "Adam"
  89. RMS_PROP = "RMSprop"
  90. RMS_PROP_TF = "RMSpropTF"
  91. LAMB = "Lamb"
  92. class Callbacks:
  93. """Static class holding all the supported callback names"""""
  94. DECI_LAB_UPLOAD = 'DeciLabUploadCallback'
  95. LR_CALLBACK_BASE = 'LRCallbackBase'
  96. LR_SCHEDULER = 'LRSchedulerCallback'
  97. METRICS_UPDATE = 'MetricsUpdateCallback'
  98. MODEL_CONVERSION_CHECK = 'ModelConversionCheckCallback'
  99. EARLY_STOP = 'EarlyStop'
  100. DETECTION_MULTISCALE_PREPREDICTION = 'DetectionMultiscalePrePredictionCallback'
  101. YOLOX_TRAINING_STAGE_SWITCH = 'YoloXTrainingStageSwitchCallback'
  102. class LRSchedulers:
  103. """Static class to hold all the supported LR Scheduler names"""""
  104. STEP = "step"
  105. POLY = "poly"
  106. COSINE = "cosine"
  107. EXP = "exp"
  108. FUNCTION = "function"
  109. class LRWarmups:
  110. """Static class to hold all the supported LR Warmup names"""""
  111. LINEAR_STEP = "linear_step"
  112. class Samplers:
  113. """Static class to hold all the supported Samplers names"""""
  114. INFINITE = "InfiniteSampler"
  115. REPEAT_AUG = "RepeatAugSampler"
  116. DISTRIBUTED = "DistributedSampler"
Discard
Tip!

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