|
|
@@ -117,6 +117,132 @@ yolov5_pico_trans_config = {
|
|
|
|
|
|
# ----------------------- YOLOX-Style Transform -----------------------
|
|
|
yolox_huge_trans_config = {
|
|
|
+ 'aug_type': 'yolov5',
|
|
|
+ # Basic Augment
|
|
|
+ 'degrees': 10.0,
|
|
|
+ 'translate': 0.1,
|
|
|
+ 'scale': 0.9,
|
|
|
+ 'shear': 2.0,
|
|
|
+ 'perspective': 0.0,
|
|
|
+ 'hsv_h': 0.015,
|
|
|
+ 'hsv_s': 0.7,
|
|
|
+ 'hsv_v': 0.4,
|
|
|
+ # Mosaic & Mixup
|
|
|
+ 'mosaic_prob': 1.0,
|
|
|
+ 'mixup_prob': 1.0,
|
|
|
+ 'mosaic_type': 'yolov5_mosaic',
|
|
|
+ 'mixup_type': 'yolox_mixup',
|
|
|
+ 'mixup_scale': [0.5, 1.5]
|
|
|
+}
|
|
|
+
|
|
|
+yolox_large_trans_config = {
|
|
|
+ 'aug_type': 'yolov5',
|
|
|
+ # Basic Augment
|
|
|
+ 'degrees': 10.0,
|
|
|
+ 'translate': 0.1,
|
|
|
+ 'scale': 0.9,
|
|
|
+ 'shear': 2.0,
|
|
|
+ 'perspective': 0.0,
|
|
|
+ 'hsv_h': 0.015,
|
|
|
+ 'hsv_s': 0.7,
|
|
|
+ 'hsv_v': 0.4,
|
|
|
+ # Mosaic & Mixup
|
|
|
+ 'mosaic_prob': 1.0,
|
|
|
+ 'mixup_prob': 1.0,
|
|
|
+ 'mosaic_type': 'yolov5_mosaic',
|
|
|
+ 'mixup_type': 'yolox_mixup',
|
|
|
+ 'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
+}
|
|
|
+
|
|
|
+yolox_medium_trans_config = {
|
|
|
+ 'aug_type': 'yolov5',
|
|
|
+ # Basic Augment
|
|
|
+ 'degrees': 10.0,
|
|
|
+ 'translate': 0.1,
|
|
|
+ 'scale': 0.9,
|
|
|
+ 'shear': 2.0,
|
|
|
+ 'perspective': 0.0,
|
|
|
+ 'hsv_h': 0.015,
|
|
|
+ 'hsv_s': 0.7,
|
|
|
+ 'hsv_v': 0.4,
|
|
|
+ # Mosaic & Mixup
|
|
|
+ 'mosaic_prob': 1.0,
|
|
|
+ 'mixup_prob': 1.0,
|
|
|
+ 'mosaic_type': 'yolov5_mosaic',
|
|
|
+ 'mixup_type': 'yolox_mixup',
|
|
|
+ 'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
+}
|
|
|
+
|
|
|
+yolox_small_trans_config = {
|
|
|
+ 'aug_type': 'yolov5',
|
|
|
+ # Basic Augment
|
|
|
+ 'degrees': 10.0,
|
|
|
+ 'translate': 0.1,
|
|
|
+ 'scale': 0.9,
|
|
|
+ 'shear': 2.0,
|
|
|
+ 'perspective': 0.0,
|
|
|
+ 'hsv_h': 0.015,
|
|
|
+ 'hsv_s': 0.7,
|
|
|
+ 'hsv_v': 0.4,
|
|
|
+ # Mosaic & Mixup
|
|
|
+ 'mosaic_prob': 1.0,
|
|
|
+ 'mixup_prob': 1.0,
|
|
|
+ 'mosaic_type': 'yolov5_mosaic',
|
|
|
+ 'mixup_type': 'yolox_mixup',
|
|
|
+ 'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
+}
|
|
|
+
|
|
|
+yolox_nano_trans_config = {
|
|
|
+ 'aug_type': 'yolov5',
|
|
|
+ # Basic Augment
|
|
|
+ 'degrees': 10.0,
|
|
|
+ 'translate': 0.1,
|
|
|
+ 'scale': 0.9,
|
|
|
+ 'shear': 2.0,
|
|
|
+ 'perspective': 0.0,
|
|
|
+ 'hsv_h': 0.015,
|
|
|
+ 'hsv_s': 0.7,
|
|
|
+ 'hsv_v': 0.4,
|
|
|
+ # Mosaic & Mixup
|
|
|
+ 'mosaic_prob': 1.0,
|
|
|
+ 'mixup_prob': 0.0,
|
|
|
+ 'mosaic_type': 'yolov5_mosaic',
|
|
|
+ 'mixup_type': 'yolox_mixup',
|
|
|
+ 'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
+}
|
|
|
+
|
|
|
+yolox_pico_trans_config = {
|
|
|
+ 'aug_type': 'yolov5',
|
|
|
+ # Basic Augment
|
|
|
+ 'degrees': 10.0,
|
|
|
+ 'translate': 0.1,
|
|
|
+ 'scale': 0.9,
|
|
|
+ 'shear': 2.0,
|
|
|
+ 'perspective': 0.0,
|
|
|
+ 'hsv_h': 0.015,
|
|
|
+ 'hsv_s': 0.7,
|
|
|
+ 'hsv_v': 0.4,
|
|
|
+ # Mosaic & Mixup
|
|
|
+ 'mosaic_prob': 0.5,
|
|
|
+ 'mixup_prob': 0.0,
|
|
|
+ 'mosaic_type': 'yolov5_mosaic',
|
|
|
+ 'mixup_type': 'yolox_mixup',
|
|
|
+ 'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
+}
|
|
|
+
|
|
|
+# ----------------------- SSD-Style Transform -----------------------
|
|
|
+ssd_trans_config = {
|
|
|
+ 'aug_type': 'ssd',
|
|
|
+ # Mosaic & Mixup are not used for SSD-style augmentation
|
|
|
+ 'mosaic_prob': 0.,
|
|
|
+ 'mixup_prob': 0.,
|
|
|
+ 'mosaic_type': 'yolov5_mosaic',
|
|
|
+ 'mixup_type': 'yolov5_mixup',
|
|
|
+ 'mixup_scale': [0.5, 1.5]
|
|
|
+}
|
|
|
+
|
|
|
+# ----------------------- YOLOX's Transform without Rotation -----------------------
|
|
|
+yolovx_huge_trans_config = {
|
|
|
'aug_type': 'yolov5',
|
|
|
# Basic Augment
|
|
|
'degrees': 0.0,
|
|
|
@@ -135,7 +261,7 @@ yolox_huge_trans_config = {
|
|
|
'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
}
|
|
|
|
|
|
-yolox_large_trans_config = {
|
|
|
+yolovx_large_trans_config = {
|
|
|
'aug_type': 'yolov5',
|
|
|
# Basic Augment
|
|
|
'degrees': 0.0,
|
|
|
@@ -154,7 +280,7 @@ yolox_large_trans_config = {
|
|
|
'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
}
|
|
|
|
|
|
-yolox_medium_trans_config = {
|
|
|
+yolovx_medium_trans_config = {
|
|
|
'aug_type': 'yolov5',
|
|
|
# Basic Augment
|
|
|
'degrees': 0.0,
|
|
|
@@ -173,7 +299,7 @@ yolox_medium_trans_config = {
|
|
|
'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
}
|
|
|
|
|
|
-yolox_small_trans_config = {
|
|
|
+yolovx_small_trans_config = {
|
|
|
'aug_type': 'yolov5',
|
|
|
# Basic Augment
|
|
|
'degrees': 0.0,
|
|
|
@@ -192,7 +318,7 @@ yolox_small_trans_config = {
|
|
|
'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
}
|
|
|
|
|
|
-yolox_nano_trans_config = {
|
|
|
+yolovx_nano_trans_config = {
|
|
|
'aug_type': 'yolov5',
|
|
|
# Basic Augment
|
|
|
'degrees': 0.0,
|
|
|
@@ -211,7 +337,7 @@ yolox_nano_trans_config = {
|
|
|
'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
}
|
|
|
|
|
|
-yolox_pico_trans_config = {
|
|
|
+yolovx_pico_trans_config = {
|
|
|
'aug_type': 'yolov5',
|
|
|
# Basic Augment
|
|
|
'degrees': 0.0,
|
|
|
@@ -229,14 +355,3 @@ yolox_pico_trans_config = {
|
|
|
'mixup_type': 'yolox_mixup',
|
|
|
'mixup_scale': [0.5, 1.5] # "mixup_scale" is not used for YOLOv5MixUp
|
|
|
}
|
|
|
-
|
|
|
-# ----------------------- SSD-Style Transform -----------------------
|
|
|
-ssd_trans_config = {
|
|
|
- 'aug_type': 'ssd',
|
|
|
- # Mosaic & Mixup are not used for SSD-style augmentation
|
|
|
- 'mosaic_prob': 0.,
|
|
|
- 'mixup_prob': 0.,
|
|
|
- 'mosaic_type': 'yolov5_mosaic',
|
|
|
- 'mixup_type': 'yolov5_mixup',
|
|
|
- 'mixup_scale': [0.5, 1.5]
|
|
|
-}
|