Update detection_config.yml
Browse files- detection_config.yml +11 -7
detection_config.yml
CHANGED
|
@@ -46,7 +46,7 @@ Optimizer:
|
|
| 46 |
beta2: 0.999
|
| 47 |
lr:
|
| 48 |
name: Cosine
|
| 49 |
-
learning_rate: 0.
|
| 50 |
warmup_epoch: 2
|
| 51 |
regularizer:
|
| 52 |
name: 'L2'
|
|
@@ -74,10 +74,14 @@ 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': Affine, 'args': { 'rotate': [-10, 10] } }
|
| 82 |
- { 'type': Resize, 'args': { 'size': [0.5, 3] } }
|
| 83 |
- EastRandomCropData:
|
|
@@ -98,7 +102,7 @@ Train:
|
|
| 98 |
order: 'hwc'
|
| 99 |
- ToCHWImage:
|
| 100 |
- KeepKeys:
|
| 101 |
-
keep_keys: ['image', 'threshold_map', 'threshold_mask', 'shrink_map', 'shrink_mask']
|
| 102 |
loader:
|
| 103 |
shuffle: True
|
| 104 |
drop_last: False
|
|
@@ -113,10 +117,10 @@ Eval:
|
|
| 113 |
label_file_list:
|
| 114 |
- dataset/detection_test.txt
|
| 115 |
transforms:
|
| 116 |
-
- DecodeImage:
|
| 117 |
img_mode: BGR
|
| 118 |
channel_first: False
|
| 119 |
-
- DetLabelEncode:
|
| 120 |
- DetResizeForTest:
|
| 121 |
image_shape: [736, 1280]
|
| 122 |
- NormalizeImage:
|
|
@@ -130,6 +134,6 @@ Eval:
|
|
| 130 |
loader:
|
| 131 |
shuffle: False
|
| 132 |
drop_last: False
|
| 133 |
-
batch_size_per_card: 1 # must be 1
|
| 134 |
num_workers: 4
|
| 135 |
-
use_shared_memory: True
|
|
|
|
| 46 |
beta2: 0.999
|
| 47 |
lr:
|
| 48 |
name: Cosine
|
| 49 |
+
learning_rate: 0.001 # learning_rate
|
| 50 |
warmup_epoch: 2
|
| 51 |
regularizer:
|
| 52 |
name: 'L2'
|
|
|
|
| 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:
|
|
|
|
| 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
|
|
|
|
| 117 |
label_file_list:
|
| 118 |
- dataset/detection_test.txt
|
| 119 |
transforms:
|
| 120 |
+
- DecodeImage:
|
| 121 |
img_mode: BGR
|
| 122 |
channel_first: False
|
| 123 |
+
- DetLabelEncode:
|
| 124 |
- DetResizeForTest:
|
| 125 |
image_shape: [736, 1280]
|
| 126 |
- NormalizeImage:
|
|
|
|
| 134 |
loader:
|
| 135 |
shuffle: False
|
| 136 |
drop_last: False
|
| 137 |
+
batch_size_per_card: 1 # must be 1 for detection eval
|
| 138 |
num_workers: 4
|
| 139 |
+
use_shared_memory: True
|