Upload dfine_hgnetv2_x_custom.yml with huggingface_hub
Browse files- dfine_hgnetv2_x_custom.yml +55 -0
dfine_hgnetv2_x_custom.yml
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__include__: [
|
| 2 |
+
'../../dataset/custom_detection.yml',
|
| 3 |
+
'../../runtime.yml',
|
| 4 |
+
'../include/dataloader.yml',
|
| 5 |
+
'../include/optimizer.yml',
|
| 6 |
+
'../include/dfine_hgnetv2.yml',
|
| 7 |
+
]
|
| 8 |
+
|
| 9 |
+
output_dir: ./output/dfine_hgnetv2_x_custom
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
DFINE:
|
| 13 |
+
backbone: HGNetv2
|
| 14 |
+
|
| 15 |
+
HGNetv2:
|
| 16 |
+
name: 'B5'
|
| 17 |
+
return_idx: [1, 2, 3]
|
| 18 |
+
freeze_stem_only: True
|
| 19 |
+
freeze_at: 0
|
| 20 |
+
freeze_norm: True
|
| 21 |
+
|
| 22 |
+
HybridEncoder:
|
| 23 |
+
hidden_dim: 384
|
| 24 |
+
dim_feedforward: 2048
|
| 25 |
+
|
| 26 |
+
DFINETransformer:
|
| 27 |
+
feat_channels: [384, 384, 384]
|
| 28 |
+
reg_scale: 8
|
| 29 |
+
|
| 30 |
+
optimizer:
|
| 31 |
+
type: AdamW
|
| 32 |
+
params:
|
| 33 |
+
-
|
| 34 |
+
params: '^(?=.*backbone)(?!.*norm|bn).*$'
|
| 35 |
+
lr: 0.0000025
|
| 36 |
+
-
|
| 37 |
+
params: '^(?=.*(?:encoder|decoder))(?=.*(?:norm|bn)).*$'
|
| 38 |
+
weight_decay: 0.
|
| 39 |
+
|
| 40 |
+
lr: 0.00025
|
| 41 |
+
betas: [0.9, 0.999]
|
| 42 |
+
weight_decay: 0.000125
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
# Increase to search for the optimal ema
|
| 46 |
+
epochs: 35 # 30 + 5
|
| 47 |
+
train_dataloader:
|
| 48 |
+
dataset:
|
| 49 |
+
transforms:
|
| 50 |
+
policy:
|
| 51 |
+
epoch: 30
|
| 52 |
+
collate_fn:
|
| 53 |
+
stop_epoch: 30
|
| 54 |
+
ema_restart_decay: 0.9998
|
| 55 |
+
base_size_repeat: 3
|