-
Notifications
You must be signed in to change notification settings - Fork 466
Expand file tree
/
Copy pathdeimv2_s.yaml
More file actions
245 lines (238 loc) · 8.59 KB
/
Copy pathdeimv2_s.yaml
File metadata and controls
245 lines (238 loc) · 8.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
task: DETECTION
model:
class_path: getitune.backend.lightning.models.detection.DEIMV2
init_args:
model_name: deimv2_s
label_info: 80
multi_scale: false
optimizer:
class_path: torch.optim.AdamW
init_args:
lr: 0.0004
betas: [0.9, 0.999]
weight_decay: 0.0001
scheduler:
class_path: getitune.backend.lightning.schedulers.LinearWarmupSchedulerCallable
init_args:
num_warmup_steps: 30
main_scheduler_callable:
class_path: lightning.pytorch.cli.ReduceLROnPlateau
init_args:
mode: max
factor: 0.5
patience: 10
monitor: val/map_50
engine:
device: auto
callback_monitor: val/map_50
callbacks:
- class_path: getitune.backend.lightning.callbacks.adaptive_train_scheduling.AdaptiveTrainScheduling
init_args:
max_interval: 1
min_lrschedule_patience: 3
- class_path: getitune.backend.lightning.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup
init_args:
mode: max
patience: 10
min_delta: 0.001
warmup_iters: 50
warmup_epochs: 10
- class_path: lightning.pytorch.callbacks.ModelCheckpoint
init_args:
dirpath: "" # use engine.work_dir
monitor: val/map_50
mode: max
save_top_k: 1
save_last: true
auto_insert_metric_name: false
filename: "checkpoints/epoch_{epoch:03d}"
- class_path: getitune.backend.lightning.callbacks.aug_scheduler.AugmentationSchedulerCallback
init_args:
data_aug_switch:
class_path: getitune.backend.lightning.callbacks.aug_scheduler.DataAugSwitch
init_args:
policy_epochs: [4, 40]
input_size: [640, 640]
policies:
no_aug:
augmentations_cpu:
- class_path: getitune.data.augmentation.transforms.Resize
init_args:
size: [640, 640]
keep_aspect_ratio: false
augmentations_gpu:
- class_path: kornia.augmentation.RandomHorizontalFlip
init_args:
p: 0.5
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
light_aug:
augmentations_cpu:
- class_path: torchvision.transforms.v2.RandomZoomOut
init_args:
fill: 0
p: 0.5
- class_path: getitune.data.augmentation.transforms.RandomIoUCrop
- class_path: torchvision.transforms.v2.SanitizeBoundingBoxes
init_args:
min_size: 1
- class_path: getitune.data.augmentation.transforms.Resize
init_args:
size: [640, 640]
keep_aspect_ratio: false
augmentations_gpu:
- class_path: kornia.augmentation.ColorJiggle
init_args:
brightness: 0.125
contrast: 0.5
saturation: 0.5
hue: 0.05
p: 0.5
- class_path: kornia.augmentation.RandomHorizontalFlip
init_args:
p: 0.5
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
strong_aug_1:
augmentations_cpu:
- class_path: getitune.data.augmentation.transforms.CachedMosaic
init_args:
random_pop: true
max_cached_images: 20
img_scale: [640, 640]
- class_path: getitune.data.augmentation.transforms.CachedMixUp
init_args:
img_scale: [640, 640]
alpha: 1.5
p: 0.5
random_pop: true
max_cached_images: 10
- class_path: torchvision.transforms.v2.SanitizeBoundingBoxes
init_args:
min_size: 1
augmentations_gpu:
- class_path: kornia.augmentation.RandomHorizontalFlip
init_args:
p: 0.5
- class_path: kornia.augmentation.ColorJiggle
init_args:
brightness: 0.125
contrast: 0.5
saturation: 0.5
hue: 0.05
p: 0.5
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
strong_aug_2:
augmentations_cpu:
- class_path: torchvision.transforms.v2.RandomZoomOut
init_args:
fill: 0
p: 0.5
side_range: [1.0, 2.0]
- class_path: getitune.data.augmentation.transforms.RandomIoUCrop
- class_path: torchvision.transforms.v2.SanitizeBoundingBoxes
init_args:
min_size: 1
- class_path: getitune.data.augmentation.transforms.CachedMixUp
init_args:
img_scale: [640, 640]
alpha: 1.5
p: 0.5
random_pop: true
max_cached_images: 10
- class_path: torchvision.transforms.v2.SanitizeBoundingBoxes
init_args:
min_size: 1
- class_path: getitune.data.augmentation.transforms.Resize
init_args:
size: [640, 640]
keep_aspect_ratio: false
augmentations_gpu:
- class_path: kornia.augmentation.RandomHorizontalFlip
init_args:
p: 0.5
- class_path: kornia.augmentation.ColorJiggle
init_args:
brightness: 0.125
contrast: 0.5
saturation: 0.5
hue: 0.05
p: 0.5
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
data: ../_base_/data/detection.yaml
overrides:
callbacks:
- class_path: getitune.backend.lightning.callbacks.adaptive_train_scheduling.AdaptiveTrainScheduling
init_args:
max_interval: 1
min_lrschedule_patience: 3
- class_path: getitune.backend.lightning.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup
init_args:
warmup_iters: 100
warmup_epochs: 7
data:
input_size:
- 640
- 640
task: DETECTION
train_subset:
batch_size: 8
augmentations_cpu:
- class_path: torchvision.transforms.v2.RandomZoomOut
init_args:
fill: 0
p: 0.5
- class_path: getitune.data.augmentation.transforms.RandomIoUCrop
- class_path: torchvision.transforms.v2.SanitizeBoundingBoxes
init_args:
min_size: 1
- class_path: getitune.data.augmentation.transforms.Resize
init_args:
size: $(input_size)
keep_aspect_ratio: false
augmentations_gpu:
- class_path: kornia.augmentation.RandomHorizontalFlip
init_args:
p: 0.5
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
sampler:
class_path: getitune.data.samplers.balanced_sampler.BalancedSampler
val_subset:
batch_size: 8
augmentations_cpu:
- class_path: getitune.data.augmentation.transforms.Resize
init_args:
size: $(input_size)
keep_aspect_ratio: false
resize_targets: false
augmentations_gpu:
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
test_subset:
batch_size: 8
augmentations_cpu:
- class_path: getitune.data.augmentation.transforms.Resize
init_args:
size: $(input_size)
keep_aspect_ratio: false
resize_targets: false
augmentations_gpu:
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]