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

#344 Feature/sg 255 add class for supported strings

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-255-add_class_for_supported_strings
@@ -4,22 +4,22 @@ defaults:
 
 
 train_dataset_params:
 train_dataset_params:
   transforms:
   transforms:
-    - ColorJitterSeg:
+    - SegColorJitter:
         brightness: 0.5
         brightness: 0.5
         contrast: 0.5
         contrast: 0.5
         saturation: 0.5
         saturation: 0.5
 
 
-    - RandomFlipSeg:
+    - SegRandomFlip:
         prob: 0.5
         prob: 0.5
 
 
-    - RandomRescaleSeg:
+    - SegRandomRescale:
         scales: [ 0.5, 2. ]
         scales: [ 0.5, 2. ]
 
 
-    - PadShortToCropSizeSeg:
+    - SegPadShortToCropSize:
         crop_size: [ 1024, 1024 ]
         crop_size: [ 1024, 1024 ]
         fill_mask: 19
         fill_mask: 19
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: [ 1024, 1024 ]
         crop_size: [ 1024, 1024 ]
         mode: random
         mode: random
 
 
Discard
@@ -5,23 +5,23 @@ defaults:
 train_dataset_params:
 train_dataset_params:
   transforms:
   transforms:
     # for more options see common.factories.transforms_factory.py
     # for more options see common.factories.transforms_factory.py
-    - ColorJitterSeg:
+    - SegColorJitter:
         brightness: 0.1
         brightness: 0.1
         contrast: 0.1
         contrast: 0.1
         saturation: 0.1
         saturation: 0.1
 
 
-    - RandomFlipSeg:
+    - SegRandomFlip:
         prob: 0.5
         prob: 0.5
 
 
-    - RandomRescaleSeg:
+    - SegRandomRescale:
         scales: [ 0.4, 1.6 ]
         scales: [ 0.4, 1.6 ]
 
 
-    - PadShortToCropSizeSeg:
+    - SegPadShortToCropSize:
         crop_size: 1024
         crop_size: 1024
         fill_image: [ 19, 0, 0 ]
         fill_image: [ 19, 0, 0 ]
         fill_mask: 19                     # ignored label idx
         fill_mask: 19                     # ignored label idx
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: 1024
         crop_size: 1024
         mode: random
         mode: random
 
 
Discard
@@ -5,28 +5,28 @@ defaults:
 train_dataset_params:
 train_dataset_params:
   transforms:
   transforms:
     # for more options see common.factories.transforms_factory.py
     # for more options see common.factories.transforms_factory.py
-    - ColorJitterSeg:
+    - SegColorJitter:
         brightness: 0.5
         brightness: 0.5
         contrast: 0.5
         contrast: 0.5
         saturation: 0.5
         saturation: 0.5
 
 
-    - RandomFlipSeg:
+    - SegRandomFlip:
         prob: 0.5
         prob: 0.5
 
 
-    - RandomRescaleSeg:
+    - SegRandomRescale:
         scales: [ 0.125, 1.5 ]
         scales: [ 0.125, 1.5 ]
 
 
-    - PadShortToCropSizeSeg:
+    - SegPadShortToCropSize:
         crop_size: [ 1024, 512 ]
         crop_size: [ 1024, 512 ]
         fill_mask: 19                  # ignored label idx
         fill_mask: 19                  # ignored label idx
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: [ 1024, 512 ]
         crop_size: [ 1024, 512 ]
         mode: random
         mode: random
 
 
 val_dataset_params:
 val_dataset_params:
   transforms:
   transforms:
-    - RescaleSeg:
+    - SegRescale:
         scale_factor: 0.5
         scale_factor: 0.5
 
 
 train_dataloader_params:
 train_dataloader_params:
Discard
@@ -5,28 +5,28 @@ defaults:
 train_dataset_params:
 train_dataset_params:
   transforms:
   transforms:
     # for more options see common.factories.transforms_factory.py
     # for more options see common.factories.transforms_factory.py
-    - ColorJitterSeg:
+    - SegColorJitter:
         brightness: 0.5
         brightness: 0.5
         contrast: 0.5
         contrast: 0.5
         saturation: 0.5
         saturation: 0.5
 
 
-    - RandomFlipSeg:
+    - SegRandomFlip:
         prob: 0.5
         prob: 0.5
 
 
-    - RandomRescaleSeg:
+    - SegRandomRescale:
         scales: [ 0.125, 1.5 ]
         scales: [ 0.125, 1.5 ]
 
 
-    - PadShortToCropSizeSeg:
+    - SegPadShortToCropSize:
         crop_size: [ 1536, 768 ]
         crop_size: [ 1536, 768 ]
         fill_mask: 19                  # ignored label idx
         fill_mask: 19                  # ignored label idx
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: [ 1536, 768 ]
         crop_size: [ 1536, 768 ]
         mode: random
         mode: random
 
 
 val_dataset_params:
 val_dataset_params:
   transforms:
   transforms:
-    - RescaleSeg:
+    - SegRescale:
         scale_factor: 0.75
         scale_factor: 0.75
 
 
 train_dataloader_params:
 train_dataloader_params:
Discard
@@ -9,19 +9,19 @@ train_dataset_params:
   cache_images: False
   cache_images: False
   transforms:
   transforms:
     # for more options see common.factories.transforms_factory.py
     # for more options see common.factories.transforms_factory.py
-    - RandomFlipSeg:
+    - SegRandomFlip:
         prob: 0.5
         prob: 0.5
 
 
-    - RescaleSeg: # consider removing this step
+    - SegRescale: # consider removing this step
         long_size: 608
         long_size: 608
 
 
-    - RandomRescaleSeg:
+    - SegRandomRescale:
         scales: [ 0.5, 2.0 ]
         scales: [ 0.5, 2.0 ]
 
 
-    - PadShortToCropSizeSeg:
+    - SegPadShortToCropSize:
         crop_size: 512
         crop_size: 512
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: 512
         crop_size: 512
         mode: random
         mode: random
 
 
@@ -35,10 +35,10 @@ val_dataset_params:
   cache_labels: False
   cache_labels: False
   cache_images: False
   cache_images: False
   transforms:
   transforms:
-    - RescaleSeg:
+    - SegRescale:
         short_size: 512
         short_size: 512
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: 512
         crop_size: 512
         mode: center
         mode: center
 
 
Discard
@@ -7,19 +7,19 @@ train_dataset_params:
   cache_images: False
   cache_images: False
   transforms:
   transforms:
     # for more options see common.factories.transforms_factory.py
     # for more options see common.factories.transforms_factory.py
-    - RandomFlipSeg:
+    - SegRandomFlip:
         prob: 0.5
         prob: 0.5
 
 
-    - RescaleSeg: # consider removing this step
+    - SegRescale: # consider removing this step
         long_size: 608
         long_size: 608
 
 
-    - RandomRescaleSeg:
+    - SegRandomRescale:
         scales: [ 0.5, 2.0 ]
         scales: [ 0.5, 2.0 ]
 
 
-    - PadShortToCropSizeSeg:
+    - SegPadShortToCropSize:
         crop_size: 512
         crop_size: 512
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: 512
         crop_size: 512
         mode: random
         mode: random
 
 
@@ -31,10 +31,10 @@ val_dataset_params:
   cache_labels: False
   cache_labels: False
   cache_images: False
   cache_images: False
   transforms:
   transforms:
-    - RescaleSeg:
+    - SegRescale:
         short_size: 512
         short_size: 512
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: 512
         crop_size: 512
         mode: center
         mode: center
 
 
Discard
@@ -10,19 +10,19 @@ train_dataset_params:
   cache_images: False
   cache_images: False
   transforms:
   transforms:
     # for more options see common.factories.transforms_factory.py
     # for more options see common.factories.transforms_factory.py
-    - RandomFlipSeg:
+    - SegRandomFlip:
         prob: 0.5
         prob: 0.5
 
 
-    - RescaleSeg: # consider removing this step
+    - SegRescale: # consider removing this step
         long_size: 608
         long_size: 608
 
 
-    - RandomRescaleSeg:
+    - SegRandomRescale:
         scales: [ 0.5, 2.0 ]
         scales: [ 0.5, 2.0 ]
 
 
-    - PadShortToCropSizeSeg:
+    - SegPadShortToCropSize:
         crop_size: 512
         crop_size: 512
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: 512
         crop_size: 512
         mode: random
         mode: random
 
 
@@ -34,10 +34,10 @@ val_dataset_params:
   cache_labels: False
   cache_labels: False
   cache_images: False
   cache_images: False
   transforms:
   transforms:
-    - RescaleSeg:
+    - SegRescale:
         short_size: 512
         short_size: 512
 
 
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: 512
         crop_size: 512
         mode: center
         mode: center
 
 
Discard
@@ -4,18 +4,18 @@ train_dataset_params:
   cache_labels: False
   cache_labels: False
   cache_images: False
   cache_images: False
   transforms:
   transforms:
-    - RandomRescaleSeg:
+    - SegRandomRescale:
         scales: [ 0.25, 1. ]
         scales: [ 0.25, 1. ]
-    - ColorJitterSeg:
+    - SegColorJitter:
         brightness: 0.5
         brightness: 0.5
         contrast: 0.5
         contrast: 0.5
         saturation: 0.5
         saturation: 0.5
-    - RandomFlipSeg:
+    - SegRandomFlip:
         prob: 0.5
         prob: 0.5
-    - PadShortToCropSizeSeg:
+    - SegPadShortToCropSize:
         crop_size: [ 320, 480 ]
         crop_size: [ 320, 480 ]
         fill_mask: 0
         fill_mask: 0
-    - CropImageAndMaskSeg:
+    - SegCropImageAndMask:
         crop_size: [ 320, 480 ]
         crop_size: [ 320, 480 ]
         mode: random
         mode: random
 
 
@@ -25,7 +25,7 @@ val_dataset_params:
   cache_labels: False
   cache_labels: False
   cache_images: False
   cache_images: False
   transforms:
   transforms:
-    - ResizeSeg:
+    - SegResize:
         h: 480
         h: 480
         w: 320
         w: 320
 
 
Discard