Switch to unified view

a b/configs/gaitgraph2/gaitgraph2_GREW.yaml
1
data_cfg:
2
  dataset_name: GREW
3
  dataset_root: your_path
4
  dataset_partition: ./datasets/GREW/GREW.json
5
  test_dataset_name: GREW
6
  num_workers: 8
7
  remove_no_gallery: false
8
9
evaluator_cfg:
10
  enable_float16: false
11
  restore_ckpt_strict: true
12
  restore_hint: 50000
13
  save_name: GaitGraph2
14
  sampler:
15
    batch_size: 256 
16
    frames_num_fixed: 60
17
    frames_num_max: 50
18
    frames_num_min: 25
19
    sample_type: fixed_ordered
20
    frames_skip_num: 0
21
  metric: cos
22
  eval_func: GREW_submission
23
  transform:
24
    - type: Compose
25
      trf_cfg:
26
        - type: NormalizeEmpty
27
        - type: GaitGraphMultiInput
28
      
29
30
loss_cfg:
31
  - loss_term_weight: 1
32
    temperature: 0.01
33
    type:  SupConLoss_Lp
34
    log_prefix: SupConLoss
35
36
model_cfg:
37
  model: GaitGraph2
38
  joint_format: coco
39
  input_num: 3
40
  reduction: 4
41
  block: Bottleneck # Basic, initial
42
  input_branch:
43
    - 5
44
    - 64
45
    - 64
46
    - 32
47
  main_stream:
48
    - 32
49
    - 128
50
    - 128
51
    - 128
52
    - 256
53
    - 256
54
    - 256
55
  num_class: 128
56
  tta: true
57
58
optimizer_cfg:
59
  lr: 0.005
60
  solver: Adam
61
  weight_decay: 0.00001
62
63
scheduler_cfg:
64
  three_phase: True
65
  max_lr: 0.005
66
  total_steps: 50000
67
  scheduler: OneCycleLR
68
69
trainer_cfg:
70
  enable_float16: false 
71
  log_iter: 1000
72
  with_test: true
73
  restore_ckpt_strict: false
74
  restore_hint: 0
75
  save_iter: 10000
76
  save_name: GaitGraph2
77
  sync_BN: true
78
  total_iter:  50000
79
  sampler:
80
    batch_shuffle: true
81
    frames_num_fixed: 60
82
    frames_num_max: 50
83
    frames_num_min: 25
84
    sample_type: fixed_ordered #Repeat sample
85
    frames_skip_num: 0
86
    batch_size: 768
87
    type: CommonSampler
88
89
  transform:
90
    - type: Compose
91
      trf_cfg:
92
        - type: NormalizeEmpty
93
        - type: FlipSequence
94
          probability: 0.5
95
        - type: InversePosesPre
96
          probability: 0.1
97
        - type:  JointNoise
98
          std: 0.25
99
        - type: PointNoise
100
          std: 0.05
101
        - type: RandomMove
102
          random_r:
103
                    - 4
104
                    - 1
105
        - type: GaitGraphMultiInput