forked from Peterande/D-FINE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dfine_hgnetv2_m_obj365.yml
62 lines (51 loc) · 1.1 KB
/
dfine_hgnetv2_m_obj365.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
__include__: [
'../../dataset/obj365_detection.yml',
'../../runtime.yml',
'../include/dataloader.yml',
'../include/optimizer.yml',
'../include/dfine_hgnetv2.yml',
]
output_dir: .output/dfine_hgnetv2_s_obj365
DFINE:
backbone: HGNetv2
HGNetv2:
name: 'B2'
return_idx: [1, 2, 3]
freeze_at: -1
freeze_norm: False
use_lab: True
DFINETransformer:
num_layers: 4 # 5 6
eval_idx: -1 # -2 -3
HybridEncoder:
in_channels: [384, 768, 1536]
hidden_dim: 256
depth_mult: 0.67
optimizer:
type: AdamW
params:
-
params: '^(?=.*backbone)(?!.*norm|bn).*$'
lr: 0.000025
-
params: '^(?=.*backbone)(?=.*norm|bn).*$'
lr: 0.000025
weight_decay: 0.
-
params: '^(?=.*(?:encoder|decoder))(?=.*(?:norm|bn|bias)).*$'
weight_decay: 0.
lr: 0.00025
betas: [0.9, 0.999]
weight_decay: 0.000125
# weight_decay: 0.00005 # Faster convergence (optional)
epoches: 36 # Early stop
train_dataloader:
dataset:
transforms:
policy:
epoch: 500
collate_fn:
stop_epoch: 500
base_size_repeat: 6
checkpoint_freq: 1
print_freq: 1000