-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,449 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
data_cfg: | ||
dataset_name: CASIA-E | ||
dataset_root: your_path | ||
dataset_partition: ./datasets/CASIA-E/CASIA-E.json | ||
num_workers: 1 | ||
remove_no_gallery: false # Remove probe if no gallery for it | ||
test_dataset_name: CASIA-E | ||
|
||
evaluator_cfg: | ||
enable_float16: true | ||
restore_ckpt_strict: true | ||
restore_hint: 60000 | ||
save_name: GaitBase | ||
#eval_func: GREW_submission | ||
sampler: | ||
batch_shuffle: false | ||
batch_size: 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 | ||
frames_all_limit: 720 # limit the number of sampled frames to prevent out of memory | ||
metric: euc # cos | ||
transform: | ||
- type: BaseSilCuttingTransform | ||
|
||
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: Baseline | ||
backbone_cfg: | ||
type: ResNet9 | ||
block: BasicBlock | ||
channels: # Layers configuration for automatically model construction | ||
- 64 | ||
- 128 | ||
- 256 | ||
- 512 | ||
layers: | ||
- 1 | ||
- 1 | ||
- 1 | ||
- 1 | ||
strides: | ||
- 1 | ||
- 2 | ||
- 2 | ||
- 1 | ||
maxpool: false | ||
SeparateFCs: | ||
in_channels: 512 | ||
out_channels: 256 | ||
parts_num: 16 | ||
SeparateBNNecks: | ||
class_num: 200 | ||
in_channels: 256 | ||
parts_num: 16 | ||
bin_num: | ||
- 16 | ||
|
||
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 | ||
with_test: false | ||
log_iter: 100 | ||
restore_ckpt_strict: true | ||
restore_hint: 0 | ||
save_iter: 20000 | ||
save_name: GaitBase | ||
sync_BN: true | ||
total_iter: 60000 | ||
sampler: | ||
batch_shuffle: true | ||
batch_size: | ||
- 8 # TripletSampler, batch_size[0] indicates Number of Identity | ||
- 32 # batch_size[1] indicates Samples sequqnce for each Identity | ||
frames_num_fixed: 30 # fixed frames number for training | ||
frames_num_max: 40 # max frames number for unfixed training | ||
frames_num_min: 20 # min frames number for unfixed traing | ||
sample_type: fixed_unordered # fixed control input frames number, unordered for controlling order of input tensor; Other options: unfixed_ordered or all_ordered | ||
type: TripletSampler | ||
transform: | ||
- type: BaseSilCuttingTransform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
data_cfg: | ||
dataset_name: CASIA-E | ||
dataset_root: your_path | ||
dataset_partition: ./datasets/CASIA-E/CASIA-E.json | ||
num_workers: 4 | ||
remove_no_gallery: false | ||
test_dataset_name: CASIA-E | ||
|
||
evaluator_cfg: | ||
enable_float16: false | ||
restore_ckpt_strict: true | ||
restore_hint: 120000 | ||
save_name: GaitPart | ||
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: | ||
- 100000 | ||
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: 120000 | ||
save_name: GaitPart | ||
sync_BN: false | ||
total_iter: 120000 | ||
sampler: | ||
batch_shuffle: false | ||
batch_size: | ||
- 8 | ||
- 32 | ||
frames_num_fixed: 30 | ||
frames_num_max: 50 | ||
frames_num_min: 25 | ||
frames_skip_num: 10 | ||
sample_type: fixed_ordered | ||
type: TripletSampler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
data_cfg: | ||
dataset_name: CASIA-E | ||
dataset_root: your_path | ||
dataset_partition: ./datasets/CASIA-E/CASIA-E.json | ||
num_workers: 1 | ||
remove_no_gallery: false | ||
test_dataset_name: CASIA-E | ||
|
||
evaluator_cfg: | ||
enable_float16: false | ||
restore_ckpt_strict: true | ||
restore_hint: 60000 | ||
save_name: GaitSet | ||
sampler: | ||
batch_size: 16 | ||
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.1 | ||
momentum: 0.9 | ||
solver: SGD | ||
weight_decay: 0.0005 | ||
|
||
scheduler_cfg: | ||
gamma: 0.1 | ||
milestones: | ||
- 20000 | ||
- 40000 | ||
- 50000 | ||
scheduler: MultiStepLR | ||
|
||
trainer_cfg: | ||
enable_float16: true | ||
log_iter: 100 | ||
with_test: false | ||
restore_ckpt_strict: true | ||
restore_hint: 0 | ||
save_iter: 60000 | ||
save_name: GaitSet | ||
sync_BN: false | ||
total_iter: 60000 | ||
sampler: | ||
batch_shuffle: false | ||
batch_size: | ||
- 8 | ||
- 32 | ||
frames_num_fixed: 30 | ||
frames_num_max: 50 | ||
frames_num_min: 25 | ||
sample_type: fixed_unordered | ||
type: TripletSampler |
Oops, something went wrong.