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