forked from ShihuaHuang95/DEIM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeim_r50vd_60e_coco.yml
64 lines (55 loc) · 1.53 KB
/
deim_r50vd_60e_coco.yml
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
__include__: [
'./rtdetrv2_r50vd_6x_coco.yml'
]
output_dir: ./outputs/deim_rtdetrv2_r50vd_60e_coco
PResNet:
freeze_at: -1 # default 0
freeze_norm: False # default True
RTDETRTransformerv2:
query_pos_method: as_reg
activation: silu
mlp_act: silu
optimizer:
type: AdamW
params:
-
params: '^(?=.*backbone)(?!.*norm).*$'
lr: 0.00002
-
params: '^(?=.*(?:norm|bn)).*$'
weight_decay: 0.
lr: 0.0002
betas: [0.9, 0.999]
weight_decay: 0.0001
# change part
epoches: 60
lrsheduler: flatcosine
lr_gamma: 0.5
warmup_iter: 2000
flat_epoch: 34 # 4 + 60 / 2
no_aug_epoch: 2
train_dataloader:
dataset:
transforms:
ops:
- {type: Mosaic, output_size: 320, rotation_range: 10, translation_range: [0.1, 0.1], scaling_range: [0.5, 1.5], probability: 1.0, fill_value: 0}
- {type: RandomPhotometricDistort, p: 0.5}
- {type: RandomZoomOut, fill: 0}
- {type: RandomIoUCrop, p: 0.8}
- {type: SanitizeBoundingBoxes, min_size: 1}
- {type: RandomHorizontalFlip}
- {type: Resize, size: [640, 640], }
- {type: SanitizeBoundingBoxes, min_size: 1}
- {type: ConvertPILImage, dtype: 'float32', scale: True}
- {type: ConvertBoxes, fmt: 'cxcywh', normalize: True}
policy:
epoch: [4, 34, 58] # list
mosaic_prob: 0.5
collate_fn:
mixup_prob: 0.5
mixup_epochs: [4, 34]
stop_epoch: 58
DEIMCriterion:
weight_dict: {loss_mal: 1, loss_bbox: 5, loss_giou: 2}
losses: ['mal', 'boxes', ]
gamma: 1.5