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