Switch to unified view

a b/configs/gaitbase/gaitbase_da_grew.yaml
1
data_cfg:
2
  dataset_name: GREW
3
  dataset_root: your_path
4
  dataset_partition: ./datasets/GREW/GREW.json
5
  num_workers: 1
6
  remove_no_gallery: false # Remove probe if no gallery for it
7
  test_dataset_name: GREW
8
9
evaluator_cfg:
10
  enable_float16: true
11
  restore_ckpt_strict: true
12
  restore_hint: 180000
13
  save_name: GaitBase_DA
14
  eval_func: GREW_submission
15
  sampler:
16
    batch_shuffle: false
17
    batch_size: 16
18
    sample_type: all_ordered # all indicates whole sequence used to test, while ordered means input sequence by its natural order; Other options:   fixed_unordered
19
    frames_all_limit: 720 # limit the number of sampled frames to prevent out of memory
20
  metric: euc # cos
21
  transform:
22
    - type: BaseSilCuttingTransform
23
24
loss_cfg:
25
  - loss_term_weight: 1.0
26
    margin: 0.2
27
    type: TripletLoss
28
    log_prefix: triplet
29
  - loss_term_weight: 1.0
30
    scale: 16
31
    type: CrossEntropyLoss
32
    log_prefix: softmax
33
    log_accuracy: true
34
model_cfg:
35
  model: Baseline
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
  SeparateFCs:
56
    in_channels: 512
57
    out_channels: 256
58
    parts_num: 16
59
  SeparateBNNecks:
60
    class_num: 20000
61
    in_channels: 256
62
    parts_num: 16
63
  bin_num:
64
    - 16
65
optimizer_cfg:
66
  lr: 0.1
67
  momentum: 0.9
68
  solver: SGD
69
  weight_decay: 0.0005
70
71
scheduler_cfg:
72
  gamma: 0.1
73
  milestones: # Learning Rate Reduction at each milestones
74
    - 80000
75
    - 120000
76
    - 150000
77
  scheduler: MultiStepLR
78
trainer_cfg:
79
  enable_float16: true # half_percesion float for memory reduction and speedup
80
  fix_BN: false
81
  with_test: false
82
  log_iter: 100
83
  restore_ckpt_strict: true
84
  restore_hint: 0
85
  save_iter: 60000
86
  save_name: GaitBase_DA
87
  sync_BN: true
88
  total_iter: 180000
89
  sampler:
90
    batch_shuffle: true
91
    batch_size:
92
      - 32 # TripletSampler, batch_size[0] indicates Number of Identity
93
      - 4 #                 batch_size[1] indicates Samples sequqnce for each Identity
94
    frames_num_fixed: 30 # fixed frames number for training
95
    frames_num_max: 40 # max frames number for unfixed training
96
    frames_num_min: 20 # min frames number for unfixed traing
97
    sample_type: unfixed_unordered # fixed control input frames number, unordered for controlling order of input tensor; Other options: unfixed_ordered or all_ordered
98
    type: TripletSampler
99
  transform:
100
    - type: Compose
101
      trf_cfg:
102
        - type: RandomPerspective
103
          prob: 0.2
104
        - type: BaseSilCuttingTransform
105
        - type: RandomHorizontalFlip
106
          prob: 0.2
107
        - type: RandomRotate
108
          prob: 0.2