forked from Intellindust-AI-Lab/DEIMv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeimv2_hgnetv2_n_coco.yml
More file actions
96 lines (80 loc) · 1.7 KB
/
Copy pathdeimv2_hgnetv2_n_coco.yml
File metadata and controls
96 lines (80 loc) · 1.7 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
__include__: [
'../dataset/coco_detection.yml',
'../runtime.yml',
'../base/dataloader.yml',
'../base/optimizer.yml',
'../base/deimv2.yml'
]
output_dir: ./outputs/deimv2_hgnetv2_n_coco
HGNetv2:
name: 'B0'
return_idx: [2, 3]
freeze_at: -1
freeze_norm: False
use_lab: True
HybridEncoder:
in_channels: [512, 1024]
feat_strides: [16, 32]
# intra
hidden_dim: 128
use_encoder_idx: [1]
dim_feedforward: 512
# cross
expansion: 0.34
depth_mult: 0.5
version: 'dfine'
DEIMTransformer:
feat_channels: [128, 128]
feat_strides: [16, 32]
hidden_dim: 128
num_levels: 2
num_points: [6, 6]
num_layers: 3
eval_idx: -1
# FFN
dim_feedforward: 512
optimizer:
type: AdamW
params:
-
params: '^(?=.*backbone)(?!.*norm|bn).*$'
lr: 0.0004
-
params: '^(?=.*backbone)(?=.*norm|bn).*$'
lr: 0.0004
weight_decay: 0.
-
params: '^(?=.*(?:encoder|decoder))(?=.*(?:norm|bn|bias)).*$'
weight_decay: 0.
lr: 0.0008
betas: [0.9, 0.999]
weight_decay: 0.0001
# Increase to search for the optimal ema
epoches: 160 # 148 + 12
## Our LR-Scheduler
flat_epoch: 7800 # 4 + epoch // 2, e.g., 40 = 4 + 72 / 2
no_aug_epoch: 12
lr_gamma: 1.0
## Our DataAug
train_dataloader:
dataset:
transforms:
policy:
epoch: [4, 78, 148] # list
collate_fn:
ema_restart_decay: 0.9999
base_size_repeat: ~
mixup_epochs: [4, 78]
stop_epoch: 148
copyblend_prob: 0.4
copyblend_epochs: [4, 78] # CP half
area_threshold: 100
num_objects: 3
with_expand: True
expand_ratios: [0.1, 0.25]
DEIMCriterion:
matcher:
# new matcher
change_matcher: True
iou_order_alpha: 4.0
matcher_change_epoch: 136