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

#468 Bug/sg 399 external checkpoints fix

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:bug/SG-399_external_checkpoints_fix
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
  1. from super_gradients.common.object_names import Transforms
  2. from super_gradients.training.datasets.data_augmentation import Lighting, RandomErase
  3. from super_gradients.training.datasets.datasets_utils import RandomResizedCropAndInterpolation, rand_augment_transform
  4. from super_gradients.training.transforms.transforms import (
  5. SegRandomFlip,
  6. SegRescale,
  7. SegRandomRescale,
  8. SegRandomRotate,
  9. SegCropImageAndMask,
  10. SegRandomGaussianBlur,
  11. SegPadShortToCropSize,
  12. SegResize,
  13. SegColorJitter,
  14. DetectionMosaic,
  15. DetectionRandomAffine,
  16. DetectionMixup,
  17. DetectionHSV,
  18. DetectionHorizontalFlip,
  19. DetectionTargetsFormat,
  20. DetectionPaddedRescale,
  21. DetectionTargetsFormatTransform,
  22. )
  23. from torchvision.transforms import (
  24. Compose,
  25. ToTensor,
  26. PILToTensor,
  27. ConvertImageDtype,
  28. ToPILImage,
  29. Normalize,
  30. Resize,
  31. CenterCrop,
  32. Pad,
  33. Lambda,
  34. RandomApply,
  35. RandomChoice,
  36. RandomOrder,
  37. RandomCrop,
  38. RandomHorizontalFlip,
  39. RandomVerticalFlip,
  40. RandomResizedCrop,
  41. FiveCrop,
  42. TenCrop,
  43. LinearTransformation,
  44. ColorJitter,
  45. RandomRotation,
  46. RandomAffine,
  47. Grayscale,
  48. RandomGrayscale,
  49. RandomPerspective,
  50. RandomErasing,
  51. GaussianBlur,
  52. InterpolationMode,
  53. RandomInvert,
  54. RandomPosterize,
  55. RandomSolarize,
  56. RandomAdjustSharpness,
  57. RandomAutocontrast,
  58. RandomEqualize,
  59. )
  60. TRANSFORMS = {
  61. Transforms.SegRandomFlip: SegRandomFlip,
  62. Transforms.SegResize: SegResize,
  63. Transforms.SegRescale: SegRescale,
  64. Transforms.SegRandomRescale: SegRandomRescale,
  65. Transforms.SegRandomRotate: SegRandomRotate,
  66. Transforms.SegCropImageAndMask: SegCropImageAndMask,
  67. Transforms.SegRandomGaussianBlur: SegRandomGaussianBlur,
  68. Transforms.SegPadShortToCropSize: SegPadShortToCropSize,
  69. Transforms.SegColorJitter: SegColorJitter,
  70. Transforms.DetectionMosaic: DetectionMosaic,
  71. Transforms.DetectionRandomAffine: DetectionRandomAffine,
  72. Transforms.DetectionMixup: DetectionMixup,
  73. Transforms.DetectionHSV: DetectionHSV,
  74. Transforms.DetectionHorizontalFlip: DetectionHorizontalFlip,
  75. Transforms.DetectionPaddedRescale: DetectionPaddedRescale,
  76. Transforms.DetectionTargetsFormat: DetectionTargetsFormat,
  77. Transforms.DetectionTargetsFormatTransform: DetectionTargetsFormatTransform,
  78. Transforms.RandomResizedCropAndInterpolation: RandomResizedCropAndInterpolation,
  79. Transforms.RandAugmentTransform: rand_augment_transform,
  80. Transforms.Lighting: Lighting,
  81. Transforms.RandomErase: RandomErase,
  82. # From torch
  83. Transforms.Compose: Compose,
  84. Transforms.ToTensor: ToTensor,
  85. Transforms.PILToTensor: PILToTensor,
  86. Transforms.ConvertImageDtype: ConvertImageDtype,
  87. Transforms.ToPILImage: ToPILImage,
  88. Transforms.Normalize: Normalize,
  89. Transforms.Resize: Resize,
  90. Transforms.CenterCrop: CenterCrop,
  91. Transforms.Pad: Pad,
  92. Transforms.Lambda: Lambda,
  93. Transforms.RandomApply: RandomApply,
  94. Transforms.RandomChoice: RandomChoice,
  95. Transforms.RandomOrder: RandomOrder,
  96. Transforms.RandomCrop: RandomCrop,
  97. Transforms.RandomHorizontalFlip: RandomHorizontalFlip,
  98. Transforms.RandomVerticalFlip: RandomVerticalFlip,
  99. Transforms.RandomResizedCrop: RandomResizedCrop,
  100. Transforms.FiveCrop: FiveCrop,
  101. Transforms.TenCrop: TenCrop,
  102. Transforms.LinearTransformation: LinearTransformation,
  103. Transforms.ColorJitter: ColorJitter,
  104. Transforms.RandomRotation: RandomRotation,
  105. Transforms.RandomAffine: RandomAffine,
  106. Transforms.Grayscale: Grayscale,
  107. Transforms.RandomGrayscale: RandomGrayscale,
  108. Transforms.RandomPerspective: RandomPerspective,
  109. Transforms.RandomErasing: RandomErasing,
  110. Transforms.GaussianBlur: GaussianBlur,
  111. Transforms.InterpolationMode: InterpolationMode,
  112. Transforms.RandomInvert: RandomInvert,
  113. Transforms.RandomPosterize: RandomPosterize,
  114. Transforms.RandomSolarize: RandomSolarize,
  115. Transforms.RandomAdjustSharpness: RandomAdjustSharpness,
  116. Transforms.RandomAutocontrast: RandomAutocontrast,
  117. Transforms.RandomEqualize: RandomEqualize,
  118. }
Discard
Tip!

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