Switch to unified view

a b/configs/gaitgl/gaitgl.yaml
1
# Note  : *** the batch_size should be equal to the gpus number at the test phase!!! ***
2
data_cfg:
3
  dataset_name: CASIA-B
4
  dataset_root: your_path
5
  dataset_partition: ./datasets/CASIA-B/CASIA-B.json
6
  num_workers: 1
7
  remove_no_gallery: false
8
  test_dataset_name: CASIA-B
9
10
evaluator_cfg:
11
  enable_float16: false 
12
  restore_ckpt_strict: true
13
  restore_hint: 80000
14
  save_name: GaitGL
15
  sampler:
16
    batch_size: 4
17
    sample_type: all_ordered
18
    type: InferenceSampler
19
20
loss_cfg:
21
  - loss_term_weight: 1.0
22
    margin: 0.2
23
    type: TripletLoss
24
    log_prefix: triplet
25
  - loss_term_weight: 1.0
26
    scale: 1
27
    type: CrossEntropyLoss
28
    log_accuracy: true
29
    label_smooth: false
30
    log_prefix: softmax
31
32
model_cfg:
33
  model: GaitGL
34
  channels: [32, 64, 128]
35
  class_num: 74
36
37
optimizer_cfg:
38
  lr: 1.0e-4
39
  solver: Adam
40
  weight_decay: 5.0e-4
41
42
scheduler_cfg:
43
  gamma: 0.1
44
  milestones:
45
    - 70000
46
  scheduler: MultiStepLR
47
48
trainer_cfg:
49
  enable_float16: true
50
  with_test: true
51
  log_iter: 100
52
  restore_ckpt_strict: true
53
  restore_hint: 0
54
  save_iter: 10000
55
  save_name: GaitGL
56
  sync_BN: true
57
  total_iter: 80000
58
  sampler:
59
    batch_shuffle: true
60
    batch_size:
61
      - 8
62
      - 8
63
    frames_num_fixed: 30
64
    frames_skip_num: 0
65
    sample_type: fixed_ordered
66
    type: TripletSampler