jagennath-hari commited on
Commit
9b73f1c
·
1 Parent(s): 49ca447

update config.yaml

Browse files
Files changed (1) hide show
  1. config.yaml +32 -56
config.yaml CHANGED
@@ -1,65 +1,41 @@
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_s_custom
 
 
10
 
 
 
11
 
12
- DFINE:
13
- backbone: HGNetv2
14
-
15
- HGNetv2:
16
- name: 'B0'
17
- return_idx: [1, 2, 3]
18
- freeze_at: -1
19
- freeze_norm: False
20
- use_lab: True
21
-
22
- DFINETransformer:
23
- num_layers: 3 # 4 5 6
24
- eval_idx: -1 # -2 -3 -4
25
-
26
- HybridEncoder:
27
- in_channels: [256, 512, 1024]
28
- hidden_dim: 256
29
- depth_mult: 0.34
30
- expansion: 0.5
31
-
32
- optimizer:
33
- type: AdamW
34
- params:
35
- -
36
- params: '^(?=.*backbone)(?!.*norm|bn).*$'
37
- lr: 0.0002
38
- -
39
- params: '^(?=.*backbone)(?=.*norm|bn).*$'
40
- lr: 0.0002
41
- weight_decay: 0.
42
- -
43
- params: '^(?=.*(?:encoder|decoder))(?=.*(?:norm|bn|bias)).*$'
44
- weight_decay: 0.
45
-
46
- lr: 0.0004
47
- betas: [0.9, 0.999]
48
- weight_decay: 0.0001
49
-
50
-
51
- # Increase to search for the optimal ema
52
- epochs: 220
53
  train_dataloader:
54
- total_batch_size: 64
55
  dataset:
 
 
 
 
56
  transforms:
57
- policy:
58
- epoch: 200
 
 
 
59
  collate_fn:
60
- stop_epoch: 200
61
- ema_restart_decay: 0.9999
62
- base_size_repeat: 20
63
 
64
  val_dataloader:
65
- total_batch_size: 128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ task: detection
 
 
 
 
 
 
2
 
3
+ evaluator:
4
+ type: CocoEvaluator
5
+ iou_types: ['bbox', ]
6
 
7
+ num_classes: 3 # your dataset classes
8
+ remap_mscoco_category: False
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  train_dataloader:
11
+ type: DataLoader
12
  dataset:
13
+ type: CocoDetection
14
+ img_folder: /dataset/images/train
15
+ ann_file: /dataset/annotations/instances_train.json
16
+ return_masks: False
17
  transforms:
18
+ type: Compose
19
+ ops: ~
20
+ shuffle: True
21
+ num_workers: 4
22
+ drop_last: True
23
  collate_fn:
24
+ type: BatchImageCollateFunction
25
+
 
26
 
27
  val_dataloader:
28
+ type: DataLoader
29
+ dataset:
30
+ type: CocoDetection
31
+ img_folder: /dataset/images/val
32
+ ann_file: /dataset/annotations/instances_val.json
33
+ return_masks: False
34
+ transforms:
35
+ type: Compose
36
+ ops: ~
37
+ shuffle: False
38
+ num_workers: 4
39
+ drop_last: False
40
+ collate_fn:
41
+ type: BatchImageCollateFunction