add gaitset & gaitpart for GREW
This commit is contained in:
@@ -9,9 +9,9 @@ data_cfg:
|
|||||||
evaluator_cfg:
|
evaluator_cfg:
|
||||||
enable_float16: true
|
enable_float16: true
|
||||||
restore_ckpt_strict: true
|
restore_ckpt_strict: true
|
||||||
restore_hint: 120000
|
restore_hint: 250000
|
||||||
save_name: Baseline
|
save_name: Baseline
|
||||||
eval_func: identification_GREW_submission # identification_real_scene
|
eval_func: identification_GREW_submission # identification_real_scene # identification_GREW_submission
|
||||||
sampler:
|
sampler:
|
||||||
batch_shuffle: false
|
batch_shuffle: false
|
||||||
batch_size: 64
|
batch_size: 64
|
||||||
@@ -38,12 +38,14 @@ model_cfg:
|
|||||||
backbone_cfg:
|
backbone_cfg:
|
||||||
in_channels: 1
|
in_channels: 1
|
||||||
layers_cfg: # Layers configuration for automatically model construction
|
layers_cfg: # Layers configuration for automatically model construction
|
||||||
|
- BC-32
|
||||||
|
- BC-32
|
||||||
|
- M
|
||||||
- BC-64
|
- BC-64
|
||||||
- BC-64
|
- BC-64
|
||||||
- M
|
- M
|
||||||
- BC-128
|
- BC-128
|
||||||
- BC-128
|
- BC-128
|
||||||
- M
|
|
||||||
- BC-256
|
- BC-256
|
||||||
- BC-256
|
- BC-256
|
||||||
# - M
|
# - M
|
||||||
@@ -74,8 +76,7 @@ optimizer_cfg:
|
|||||||
scheduler_cfg:
|
scheduler_cfg:
|
||||||
gamma: 0.1
|
gamma: 0.1
|
||||||
milestones: # Learning Rate Reduction at each milestones
|
milestones: # Learning Rate Reduction at each milestones
|
||||||
- 80000
|
- 150000
|
||||||
- 100000
|
|
||||||
scheduler: MultiStepLR
|
scheduler: MultiStepLR
|
||||||
trainer_cfg:
|
trainer_cfg:
|
||||||
enable_float16: true # half_percesion float for memory reduction and speedup
|
enable_float16: true # half_percesion float for memory reduction and speedup
|
||||||
@@ -83,14 +84,14 @@ trainer_cfg:
|
|||||||
log_iter: 100
|
log_iter: 100
|
||||||
restore_ckpt_strict: true
|
restore_ckpt_strict: true
|
||||||
restore_hint: 0
|
restore_hint: 0
|
||||||
save_iter: 5000
|
save_iter: 10000
|
||||||
save_name: Baseline
|
save_name: Baseline
|
||||||
sync_BN: true
|
sync_BN: true
|
||||||
total_iter: 120000
|
total_iter: 250000
|
||||||
sampler:
|
sampler:
|
||||||
batch_shuffle: true
|
batch_shuffle: true
|
||||||
batch_size:
|
batch_size:
|
||||||
- 16 # TripletSampler, batch_size[0] indicates Number of Identity
|
- 32 # TripletSampler, batch_size[0] indicates Number of Identity
|
||||||
- 4 # batch_size[1] indicates Samples sequqnce for each Identity
|
- 4 # batch_size[1] indicates Samples sequqnce for each Identity
|
||||||
frames_num_fixed: 30 # fixed frames number for training
|
frames_num_fixed: 30 # fixed frames number for training
|
||||||
frames_num_max: 50 # max frames number for unfixed training
|
frames_num_max: 50 # max frames number for unfixed training
|
||||||
|
|||||||
@@ -0,0 +1,83 @@
|
|||||||
|
data_cfg:
|
||||||
|
dataset_name: GREW
|
||||||
|
dataset_root: your_path
|
||||||
|
dataset_partition: ./datasets/GREW/GREW.json
|
||||||
|
num_workers: 4
|
||||||
|
remove_no_gallery: false # Remove probe if no gallery for it
|
||||||
|
test_dataset_name: GREW
|
||||||
|
|
||||||
|
evaluator_cfg:
|
||||||
|
enable_float16: false
|
||||||
|
restore_ckpt_strict: true
|
||||||
|
restore_hint: 250000
|
||||||
|
save_name: GaitPart
|
||||||
|
eval_func: identification_GREW_submission # identification_real_scene # identification_GREW_submission
|
||||||
|
sampler:
|
||||||
|
batch_size: 4
|
||||||
|
sample_type: all_ordered
|
||||||
|
type: InferenceSampler
|
||||||
|
metric: euc # cos
|
||||||
|
|
||||||
|
loss_cfg:
|
||||||
|
loss_term_weight: 1.0
|
||||||
|
margin: 0.2
|
||||||
|
type: TripletLoss
|
||||||
|
log_prefix: triplet
|
||||||
|
|
||||||
|
model_cfg:
|
||||||
|
model: GaitPart
|
||||||
|
backbone_cfg:
|
||||||
|
in_channels: 1
|
||||||
|
layers_cfg:
|
||||||
|
- BC-32
|
||||||
|
- BC-32
|
||||||
|
- M
|
||||||
|
- BC-64
|
||||||
|
- BC-64
|
||||||
|
- M
|
||||||
|
- FC-128-3
|
||||||
|
- FC-128-3
|
||||||
|
- FC-256-3
|
||||||
|
- FC-256-3
|
||||||
|
type: Plain
|
||||||
|
SeparateFCs:
|
||||||
|
in_channels: 256
|
||||||
|
out_channels: 256
|
||||||
|
parts_num: 16
|
||||||
|
bin_num:
|
||||||
|
- 16
|
||||||
|
|
||||||
|
optimizer_cfg:
|
||||||
|
lr: 0.0001
|
||||||
|
momentum: 0.9
|
||||||
|
solver: Adam
|
||||||
|
weight_decay: 0.0
|
||||||
|
|
||||||
|
scheduler_cfg:
|
||||||
|
gamma: 0.1
|
||||||
|
milestones:
|
||||||
|
- 150000
|
||||||
|
scheduler: MultiStepLR
|
||||||
|
|
||||||
|
trainer_cfg:
|
||||||
|
enable_float16: true
|
||||||
|
fix_BN: false
|
||||||
|
log_iter: 100
|
||||||
|
with_test: false
|
||||||
|
restore_ckpt_strict: true
|
||||||
|
restore_hint: 0
|
||||||
|
save_iter: 10000
|
||||||
|
save_name: GaitPart
|
||||||
|
sync_BN: false
|
||||||
|
total_iter: 250000
|
||||||
|
sampler:
|
||||||
|
batch_shuffle: false
|
||||||
|
batch_size:
|
||||||
|
- 32
|
||||||
|
- 4
|
||||||
|
frames_num_fixed: 30
|
||||||
|
frames_num_max: 50
|
||||||
|
frames_num_min: 25
|
||||||
|
frames_skip_num: 10
|
||||||
|
sample_type: fixed_ordered
|
||||||
|
type: TripletSampler
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
data_cfg:
|
||||||
|
dataset_name: GREW
|
||||||
|
dataset_root: your_path
|
||||||
|
dataset_partition: ./datasets/GREW/GREW.json
|
||||||
|
num_workers: 4
|
||||||
|
remove_no_gallery: false # Remove probe if no gallery for it
|
||||||
|
test_dataset_name: GREW
|
||||||
|
|
||||||
|
evaluator_cfg:
|
||||||
|
enable_float16: true
|
||||||
|
restore_ckpt_strict: true
|
||||||
|
restore_hint: 250000
|
||||||
|
save_name: GaitSet
|
||||||
|
eval_func: identification_GREW_submission # identification_real_scene # identification_GREW_submission
|
||||||
|
sampler:
|
||||||
|
batch_size: 4
|
||||||
|
sample_type: all_ordered
|
||||||
|
type: InferenceSampler
|
||||||
|
metric: euc # cos
|
||||||
|
|
||||||
|
loss_cfg:
|
||||||
|
loss_term_weight: 1.0
|
||||||
|
margin: 0.2
|
||||||
|
type: TripletLoss
|
||||||
|
log_prefix: triplet
|
||||||
|
|
||||||
|
model_cfg:
|
||||||
|
model: GaitSet
|
||||||
|
in_channels:
|
||||||
|
- 1
|
||||||
|
- 64
|
||||||
|
- 128
|
||||||
|
- 256
|
||||||
|
SeparateFCs:
|
||||||
|
in_channels: 256
|
||||||
|
out_channels: 256
|
||||||
|
parts_num: 62
|
||||||
|
bin_num:
|
||||||
|
- 16
|
||||||
|
- 8
|
||||||
|
- 4
|
||||||
|
- 2
|
||||||
|
- 1
|
||||||
|
|
||||||
|
optimizer_cfg:
|
||||||
|
lr: 0.0001
|
||||||
|
momentum: 0.9
|
||||||
|
solver: Adam
|
||||||
|
weight_decay: 0
|
||||||
|
|
||||||
|
scheduler_cfg:
|
||||||
|
gamma: 0.1
|
||||||
|
milestones:
|
||||||
|
- 150000
|
||||||
|
scheduler: MultiStepLR
|
||||||
|
|
||||||
|
trainer_cfg:
|
||||||
|
enable_float16: true
|
||||||
|
fix_BN: false
|
||||||
|
with_test: false
|
||||||
|
log_iter: 100
|
||||||
|
restore_ckpt_strict: true
|
||||||
|
restore_hint: 0
|
||||||
|
save_iter: 10000
|
||||||
|
save_name: GaitSet
|
||||||
|
sync_BN: false
|
||||||
|
total_iter: 250000
|
||||||
|
sampler:
|
||||||
|
batch_shuffle: false
|
||||||
|
batch_size:
|
||||||
|
- 32
|
||||||
|
- 4
|
||||||
|
frames_num_fixed: 30
|
||||||
|
frames_num_max: 50
|
||||||
|
frames_num_min: 25
|
||||||
|
sample_type: fixed_unordered
|
||||||
|
type: TripletSampler
|
||||||
Reference in New Issue
Block a user