Switch to unified view

a b/configs/smplgait/smplgait.yaml
1
data_cfg:
2
  dataset_name: Gait3D
3
  dataset_root: your_path
4
  dataset_partition: datasets/Gait3D/Gait3D.json
5
  data_in_use: [true, true]
6
  num_workers: 1
7
  remove_no_gallery: false # Remove probe if no gallery for it
8
  test_dataset_name: Gait3D
9
10
evaluator_cfg:
11
  enable_float16: true
12
  restore_ckpt_strict: true
13
  restore_hint: 60000
14
  save_name: SMPLGait
15
  eval_func: evaluate_Gait3D
16
  sampler:
17
    batch_shuffle: false
18
    batch_size: 16
19
    sample_type: all_ordered # all indicates whole sequence used to test, while ordered means input sequence by its natural order; Other options:   fixed_unordered
20
    frames_all_limit: 720 # limit the number of sampled frames to prevent out of memory
21
  metric: euc # cos euc
22
  transform:
23
    - type: BaseSilCuttingTransform
24
      img_w: 64
25
    - type: NoOperation
26
27
loss_cfg:
28
  - loss_term_weight: 1.0
29
    margin: 0.2
30
    type: TripletLoss
31
    log_prefix: triplet
32
  - loss_term_weight: 0.1
33
    scale: 16
34
    type: CrossEntropyLoss
35
    log_prefix: softmax
36
    log_accuracy: true
37
38
model_cfg:
39
  model: SMPLGait
40
  backbone_cfg:
41
    in_channels: 1
42
    layers_cfg: # Layers configuration for automatically model construction
43
      - BC-64
44
      - BC-64
45
      - M
46
      - BC-128
47
      - BC-128
48
      - M
49
      - BC-256
50
      - BC-256
51
      # - M
52
      # - BC-512
53
      # - BC-512
54
    type: Plain
55
  SeparateFCs:
56
    in_channels: 256
57
    out_channels: 256
58
    parts_num: 31
59
  SeparateBNNecks:
60
    class_num: 3000
61
    in_channels: 256
62
    parts_num: 31
63
  bin_num:
64
    - 16
65
    - 8
66
    - 4
67
    - 2
68
    - 1
69
70
optimizer_cfg:
71
  lr: 0.1
72
  momentum: 0.9
73
  solver: SGD
74
  weight_decay: 0.0005
75
76
scheduler_cfg:
77
  gamma: 0.1
78
  milestones: # Learning Rate Reduction at each milestones
79
    - 20000
80
    - 40000
81
    - 50000
82
  scheduler: MultiStepLR
83
84
trainer_cfg:
85
  enable_float16: true # half_percesion float for memory reduction and speedup
86
  fix_BN: false
87
  log_iter: 100
88
  with_test: true
89
  restore_ckpt_strict: true
90
  restore_hint: 0
91
  save_iter: 10000
92
  save_name: SMPLGait
93
  sync_BN: true
94
  total_iter: 60000
95
  sampler:
96
    batch_shuffle: true
97
    batch_size:
98
      - 32 # TripletSampler, batch_size[0] indicates Number of Identity
99
      - 4 #                 batch_size[1] indicates Samples sequqnce for each Identity
100
    frames_num_fixed: 30 # fixed frames number for training
101
    frames_num_max: 50 # max frames number for unfixed training
102
    frames_num_min: 25 # min frames number for unfixed traing
103
    sample_type: fixed_unordered # fixed control input frames number, unordered for controlling order of input tensor; Other options: unfixed_ordered or all_ordered
104
    type: TripletSampler
105
  transform:
106
    - type: BaseSilCuttingTransform
107
      img_w: 64
108
    - type: NoOperation