mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 12:26:35 +00:00
remove fog and shadow augmentations
add install script
This commit is contained in:
+3
-10
@@ -24,17 +24,10 @@ class Augmentator:
|
||||
self.transform = A.Compose([
|
||||
# Flips, rotations and brightness
|
||||
A.HorizontalFlip(p=0.6),
|
||||
A.RandomBrightnessContrast(p=0.4, brightness_limit=(-0.1, 0.1), contrast_limit=(-0.1, 0.1)),
|
||||
A.Affine(p=0.7, scale=(0.8, 1.2), rotate=(-20, 20), shear=(-10, 10), translate_percent=0.2),
|
||||
A.RandomBrightnessContrast(p=0.4, brightness_limit=(-0.3, 0.3), contrast_limit=(-0.05, 0.05)),
|
||||
A.Affine(p=0.8, scale=(0.8, 1.2), rotate=(-35, 35), shear=(-10, 10)),
|
||||
|
||||
# Weather
|
||||
A.RandomFog(p=0.3, fog_coef_range=(0, 0.3)),
|
||||
A.RandomShadow(p=0.2),
|
||||
|
||||
# Image Quality/Noise
|
||||
A.MotionBlur(p=0.2, blur_limit=(3, 5)),
|
||||
|
||||
# Color Variations
|
||||
A.MotionBlur(p=0.1, blur_limit=(1, 2)),
|
||||
A.HueSaturationValue(p=0.4, hue_shift_limit=10, sat_shift_limit=10, val_shift_limit=10)
|
||||
], bbox_params=A.BboxParams(format='yolo'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user