96 lines
2.4 KiB
YAML
96 lines
2.4 KiB
YAML
data_cfg:
|
|
dataset_name: Gait3D
|
|
dataset_root: your_path #cat sil and parsing together [b,s,c,h,w] c=2(sil:1,parsing:1)
|
|
dataset_partition: ./datasets/Gait3D/Gait3D.json
|
|
num_workers: 1
|
|
remove_no_gallery: false # Remove probe if no gallery for it
|
|
test_dataset_name: Gait3D
|
|
|
|
evaluator_cfg:
|
|
enable_float16: true
|
|
restore_ckpt_strict: true
|
|
restore_hint: 60000
|
|
save_name: MultiGaitpp
|
|
sampler:
|
|
batch_shuffle: false
|
|
batch_size: 4
|
|
sample_type: all_ordered # all indicates whole sequence used to test, while ordered means input sequence by its natural order; Other options: fixed_unordered
|
|
frames_all_limit: 720 # limit the number of sampled frames to prevent out of memory
|
|
eval_func: evaluate_Gait3D
|
|
metric: euc # cos
|
|
transform:
|
|
- type: BaseSilTransform
|
|
|
|
|
|
loss_cfg:
|
|
- loss_term_weight: 1.0
|
|
margin: 0.2
|
|
type: TripletLoss
|
|
log_prefix: triplet
|
|
- loss_term_weight: 1.0
|
|
scale: 16
|
|
type: CrossEntropyLoss
|
|
log_prefix: softmax
|
|
log_accuracy: true
|
|
|
|
model_cfg:
|
|
model: MultiGaitpp
|
|
Backbone:
|
|
# in_channels: 3
|
|
blocks:
|
|
- 1
|
|
- 2
|
|
- 2
|
|
- 1
|
|
C: 2
|
|
part1_channel: 1
|
|
part2_channel: 1
|
|
SeparateBNNecks:
|
|
class_num: 3000
|
|
|
|
optimizer_cfg:
|
|
lr: 0.1
|
|
momentum: 0.9
|
|
solver: SGD
|
|
weight_decay: 0.0005
|
|
|
|
scheduler_cfg:
|
|
gamma: 0.1
|
|
milestones: # Learning Rate Reduction at each milestones
|
|
- 20000
|
|
- 40000
|
|
- 50000
|
|
scheduler: MultiStepLR
|
|
|
|
trainer_cfg:
|
|
enable_float16: true # half_percesion float for memory reduction and speedup
|
|
fix_BN: false
|
|
log_iter: 100
|
|
with_test: true
|
|
restore_ckpt_strict: true
|
|
restore_hint: 0
|
|
save_iter: 20000
|
|
save_name: MultiGaitpp
|
|
sync_BN: true
|
|
total_iter: 60000
|
|
sampler:
|
|
batch_shuffle: true
|
|
batch_size:
|
|
- 32 # TripletSampler, batch_size[0] indicates Number of Identity
|
|
- 4 # batch_size[1] indicates Samples sequqnce for each Identity
|
|
frames_num_fixed: 30 # fixed frames number for training
|
|
frames_skip_num: 4
|
|
sample_type: fixed_ordered # fixed control input frames number, unordered for controlling order of input tensor; Other options: unfixed_ordered or all_ordered
|
|
type: TripletSampler
|
|
transform:
|
|
- type: Compose
|
|
trf_cfg:
|
|
- type: RandomPerspective
|
|
prob: 0.2
|
|
- type: BaseSilTransform
|
|
- type: RandomHorizontalFlip
|
|
prob: 0.2
|
|
- type: RandomRotate
|
|
prob: 0.2
|
|
|