2c29afadf3
* pose * pose * pose * pose * 你的提交消息 * pose * pose * Delete train1.sh * pretreatment * configs * pose * reference * Update gaittr.py * naming * naming * Update transform.py * update for datasets * update README * update name and README * update * Update transform.py
91 lines
1.8 KiB
YAML
91 lines
1.8 KiB
YAML
data_cfg:
|
|
dataset_name: CCPG
|
|
dataset_root: your_path
|
|
dataset_partition: ./datasets/CCPG/CCPG.json
|
|
num_workers: 1
|
|
remove_no_gallery: false
|
|
frame_threshold: 0
|
|
test_dataset_name: CCPG
|
|
|
|
evaluator_cfg:
|
|
enable_float16: false
|
|
restore_ckpt_strict: true
|
|
restore_hint: 40000
|
|
save_name: GaitTR-CCPG
|
|
eval_func: evaluate_CCPG
|
|
sampler:
|
|
batch_size: 4 #should same to num_gpus
|
|
sample_type: all_ordered
|
|
type: InferenceSampler
|
|
metric: euc # cos
|
|
transform:
|
|
- type: Compose
|
|
trf_cfg:
|
|
- type: GaitTRMultiInput
|
|
joint_format: alphapose
|
|
- type: SkeletonInput
|
|
loss_cfg:
|
|
type: TripletLoss
|
|
margin: 0.3
|
|
log_prefix: triplet
|
|
|
|
model_cfg:
|
|
model: GaitTR
|
|
in_channels:
|
|
- 10
|
|
- 64
|
|
- 64
|
|
- 128
|
|
- 256
|
|
num_class: 128
|
|
joint_format: alphapose
|
|
|
|
|
|
optimizer_cfg:
|
|
lr: 0.001
|
|
solver: Adam
|
|
weight_decay: 0.00002
|
|
|
|
scheduler_cfg:
|
|
three_phase: True
|
|
max_lr: 0.001
|
|
div_factor: 100
|
|
final_div_factor: 1000.0
|
|
total_steps: 40000
|
|
pct_start: 0.475
|
|
scheduler: OneCycleLR
|
|
|
|
trainer_cfg:
|
|
enable_float16: false #not use
|
|
log_iter: 100
|
|
with_test: true
|
|
restore_ckpt_strict: false
|
|
restore_hint: 0
|
|
save_iter: 4000
|
|
save_name: GaitTR-CCPG
|
|
sync_BN: true
|
|
total_iter: 40000
|
|
sampler:
|
|
batch_shuffle: false
|
|
batch_size:
|
|
- 32
|
|
- 4
|
|
frames_num_fixed: 60
|
|
frames_num_max: 50
|
|
frames_num_min: 25
|
|
sample_type: fixed_ordered #Repeat sample
|
|
frames_skip_num: 0
|
|
type: TripletSampler
|
|
transform:
|
|
- type: Compose
|
|
trf_cfg:
|
|
- type: PointNoise
|
|
std: 0.3
|
|
- type: InversePosesPre
|
|
joint_format: alphapose
|
|
probability: 0.1
|
|
- type: JointNoise
|
|
std: 0.3
|
|
- type: GaitTRMultiInput
|
|
joint_format: alphapose
|
|
- type: SkeletonInput |