Switch to unified view

a b/configs/gaitbase/gaitbase_da_gait3d.yaml
1
data_cfg:
2
  dataset_name: Gait3D
3
  dataset_root: your_path
4
  dataset_partition: ./datasets/Gait3D/Gait3D.json
5
  num_workers: 1
6
  remove_no_gallery: false # Remove probe if no gallery for it
7
  test_dataset_name: Gait3D
8
9
evaluator_cfg:
10
  enable_float16: true
11
  restore_ckpt_strict: true
12
  restore_hint: 60000
13
  save_name: GaitBase_DA
14
  eval_func: evaluate_Gait3D
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
35
model_cfg:
36
  model: Baseline
37
  backbone_cfg:
38
    type: ResNet9
39
    block: BasicBlock
40
    channels: # Layers configuration for automatically model construction
41
      - 64
42
      - 128
43
      - 256
44
      - 512
45
    layers: 
46
      - 1
47
      - 1
48
      - 1
49
      - 1
50
    strides:
51
      - 1
52
      - 2
53
      - 2
54
      - 1
55
    maxpool: false
56
  SeparateFCs:
57
    in_channels: 512
58
    out_channels: 256
59
    parts_num: 16
60
  SeparateBNNecks:
61
    class_num: 3000
62
    in_channels: 256
63
    parts_num: 16
64
  bin_num:
65
    - 16
66
67
optimizer_cfg:
68
  lr: 0.1
69
  momentum: 0.9
70
  solver: SGD
71
  weight_decay: 0.0005
72
73
scheduler_cfg:
74
  gamma: 0.1
75
  milestones: # Learning Rate Reduction at each milestones
76
    - 20000
77
    - 40000
78
    - 50000
79
  scheduler: MultiStepLR
80
trainer_cfg:
81
  enable_float16: true # half_percesion float for memory reduction and speedup
82
  fix_BN: false
83
  with_test: true
84
  log_iter: 100
85
  restore_ckpt_strict: true
86
  restore_hint: 0
87
  save_iter: 20000
88
  save_name: GaitBase_DA
89
  sync_BN: true
90
  total_iter: 60000
91
  sampler:
92
    batch_shuffle: true
93
    batch_size:
94
      - 32 # TripletSampler, batch_size[0] indicates Number of Identity
95
      - 4 #                 batch_size[1] indicates Samples sequqnce for each Identity
96
    frames_num_fixed: 30 # fixed frames number for training
97
    frames_num_max: 50 # max frames number for unfixed training
98
    frames_num_min: 10 # min frames number for unfixed traing
99
    sample_type: unfixed_unordered # fixed control input frames number, unordered for controlling order of input tensor; Other options: unfixed_ordered or all_ordered
100
    type: TripletSampler
101
  transform:
102
    - type: Compose
103
      trf_cfg:
104
        - type: RandomPerspective
105
          prob: 0.2
106
        - type: BaseSilCuttingTransform
107
        - type: RandomHorizontalFlip
108
          prob: 0.2
109
        - type: RandomRotate
110
          prob: 0.2