Switch to unified view

a b/configs/gaitssb/pretrain.yaml
1
data_cfg:
2
  dataset_name: GaitLU-1M
3
  dataset_root: /your/path/to/GaitLU-1M
4
  dataset_partition: ./datasets/GaitLU-1M/GaitLU-1M.json
5
  num_workers: 1
6
  remove_no_gallery: false # Remove probe if no gallery for it
7
8
evaluator_cfg:
9
  enable_float16: true
10
  restore_ckpt_strict: true
11
  restore_hint: 150000
12
  save_name: GaitSSB_Pretrain
13
  sampler:
14
    batch_shuffle: false
15
    batch_size: 16
16
    sample_type: all_ordered # all indicates whole sequence used to test, while ordered means input sequence by its natural order; Other options:   fixed_unordered
17
    frames_all_limit: 720 # limit the number of sampled frames to prevent out of memory
18
  metric: euc # cos
19
  transform:
20
    - type: BaseSilTransform
21
22
loss_cfg:
23
  - loss_term_weight: 1.0
24
    scale: 16
25
    type: CrossEntropyLoss
26
    log_prefix: softmax1
27
    log_accuracy: true
28
  - loss_term_weight: 1.0
29
    scale: 16
30
    type: CrossEntropyLoss
31
    log_prefix: softmax2
32
    log_accuracy: true
33
34
model_cfg:
35
  model: GaitSSB_Pretrain
36
  backbone_cfg:
37
    type: ResNet9
38
    block: BasicBlock
39
    channels: # Layers configuration for automatically model construction
40
      - 64
41
      - 128
42
      - 256
43
      - 512
44
    layers:
45
      - 1
46
      - 1
47
      - 1
48
      - 1
49
    strides:
50
      - 1
51
      - 2
52
      - 2
53
      - 1
54
    maxpool: false
55
  parts_num: 31
56
57
optimizer_cfg:
58
  lr: 0.05
59
  momentum: 0.9
60
  solver: SGD
61
  weight_decay: 0.0005
62
63
scheduler_cfg:
64
  gamma: 0.1
65
  milestones: # Learning Rate Reduction at each milestones
66
    - 80000
67
    - 120000
68
  scheduler: MultiStepLR
69
70
trainer_cfg:
71
  enable_float16: true # half_percesion float for memory reduction and speedup
72
  fix_BN: false
73
  with_test: false
74
  log_iter: 100
75
  restore_ckpt_strict: true
76
  restore_hint: 0
77
  save_iter: 10000
78
  save_name: GaitSSB_Pretrain
79
  sync_BN: true
80
  total_iter: 150000
81
  sampler:
82
    batch_shuffle: true
83
    batch_size:
84
      - 8  # TripletSampler, batch_size[0] indicates Number of Identity
85
      - 64 # batch_size[1] indicates Samples sequqnce for each Identity
86
    frames_num_fixed: 16 # fixed frames number for training
87
    sample_type: fixed_ordered # fixed control input frames number, unordered for controlling order of input tensor; Other options: unfixed_ordered or all_ordered
88
    frames_skip_num: 4
89
    type: BilateralSampler
90
  transform:
91
    - type: DA4GaitSSB
92
      cutting: 0