NekoFi commited on
Commit
08c4e6c
·
verified ·
1 Parent(s): c523a3b

Update detection_config.yml

Browse files
Files changed (1) hide show
  1. detection_config.yml +9 -8
detection_config.yml CHANGED
@@ -74,16 +74,17 @@ Train:
74
  - DecodeImage: # load image
75
  img_mode: BGR
76
  channel_first: False
77
- - DetLabelEncode:
78
  - IaaAugment:
79
  augmenter_args:
80
  - { 'type': Fliplr, 'args': { 'p': 0.5 } }
81
- - { 'type': AdditiveGaussianNoise, 'args': {'scale': [0, 0.05*255], 'per_channel': 0.5, 'p': 0.3 } }
82
- - { 'type': GaussianBlur, 'args': { 'sigma': [0.0, 1.5], 'p': 0.3 } }
83
- - { 'type': Multiply, 'args': { 'mul': [0.7, 1.3], 'per_channel': 0.2, 'p': 0.5 } }
84
- - { 'type': LinearContrast, 'args': { 'alpha': [0.7, 1.3], 'per_channel': 0.5, 'p': 0.5 } }
85
- - { 'type': Affine, 'args': { 'rotate': [-10, 10] } }
86
- - { 'type': Resize, 'args': { 'size': [0.5, 3] } }
 
87
  - EastRandomCropData:
88
  size: [640, 640]
89
  max_tries: 50
@@ -102,7 +103,7 @@ Train:
102
  order: 'hwc'
103
  - ToCHWImage:
104
  - KeepKeys:
105
- keep_keys: ['image', 'threshold_map', 'threshold_mask', 'shrink_map', 'shrink_mask']
106
  loader:
107
  shuffle: True
108
  drop_last: False
 
74
  - DecodeImage: # load image
75
  img_mode: BGR
76
  channel_first: False
77
+ - DetLabelEncode: # Class handling label
78
  - IaaAugment:
79
  augmenter_args:
80
  - { 'type': Fliplr, 'args': { 'p': 0.5 } }
81
+ # --- Augmentasi Ditambahkan (Menggunakan Nama Albumentations) ---
82
+ - { 'type': GaussNoise, 'args': {'var_limit': [0, 165], 'p': 0.3 } } # Noise (prob 30%) - var_limit approx (0.05*255)^2
83
+ - { 'type': GaussianBlur, 'args': { 'sigma_limit': [0.0, 1.5], 'p': 0.3 } } # Blur (prob 30%)
84
+ - { 'type': RandomBrightnessContrast, 'args': { 'brightness_limit': 0.3, 'contrast_limit': 0.3, 'p': 0.5 } } # Light/Contrast (prob 50%)
85
+ # --- Akhir Augmentasi Tambahan ---
86
+ - { 'type': Affine, 'args': { 'rotate': [-10, 10] } } # Rotasi tetap ada
87
+ - { 'type': Resize, 'args': { 'size': [0.5, 3] } } # Resize tetap ada
88
  - EastRandomCropData:
89
  size: [640, 640]
90
  max_tries: 50
 
103
  order: 'hwc'
104
  - ToCHWImage:
105
  - KeepKeys:
106
+ keep_keys: ['image', 'threshold_map', 'threshold_mask', 'shrink_map', 'shrink_mask'] # the order of the dataloader list
107
  loader:
108
  shuffle: True
109
  drop_last: False