|
a |
|
b/configs/gaitedge/phase1_seg.yaml |
|
|
1 |
data_cfg: |
|
|
2 |
dataset_name: CASIA-B* |
|
|
3 |
dataset_root: your_path |
|
|
4 |
data_in_use: [false, false, true, true] |
|
|
5 |
dataset_partition: ./datasets/CASIA-B/CASIA-B.json |
|
|
6 |
num_workers: 1 |
|
|
7 |
remove_no_gallery: false |
|
|
8 |
test_dataset_name: CASIA-B |
|
|
9 |
|
|
|
10 |
evaluator_cfg: |
|
|
11 |
enable_float16: true |
|
|
12 |
restore_ckpt_strict: true |
|
|
13 |
restore_hint: 25000 |
|
|
14 |
save_name: Segmentation |
|
|
15 |
eval_func: evaluate_segmentation |
|
|
16 |
sampler: |
|
|
17 |
batch_size: 4 |
|
|
18 |
sample_type: all_ordered |
|
|
19 |
type: InferenceSampler |
|
|
20 |
frames_all_limit: 720 |
|
|
21 |
transform: |
|
|
22 |
- type: BaseRgbTransform |
|
|
23 |
- type: BaseSilTransform |
|
|
24 |
|
|
|
25 |
loss_cfg: |
|
|
26 |
- loss_term_weight: 1.0 |
|
|
27 |
type: BinaryCrossEntropyLoss |
|
|
28 |
log_prefix: bce |
|
|
29 |
|
|
|
30 |
model_cfg: |
|
|
31 |
model: Segmentation |
|
|
32 |
backbone_cfg: |
|
|
33 |
type: U_Net |
|
|
34 |
in_channels: 3 |
|
|
35 |
|
|
|
36 |
optimizer_cfg: |
|
|
37 |
lr: 0.1 |
|
|
38 |
momentum: 0.9 |
|
|
39 |
solver: SGD |
|
|
40 |
weight_decay: 0.0005 |
|
|
41 |
|
|
|
42 |
scheduler_cfg: |
|
|
43 |
gamma: 0.1 |
|
|
44 |
milestones: # Learning Rate Reduction at each milestones |
|
|
45 |
- 10000 |
|
|
46 |
- 15000 |
|
|
47 |
- 20000 |
|
|
48 |
scheduler: MultiStepLR |
|
|
49 |
|
|
|
50 |
trainer_cfg: |
|
|
51 |
enable_float16: true |
|
|
52 |
with_test: true |
|
|
53 |
log_iter: 100 |
|
|
54 |
restore_ckpt_strict: true |
|
|
55 |
restore_hint: 0 |
|
|
56 |
save_iter: 5000 |
|
|
57 |
save_name: Segmentation |
|
|
58 |
total_iter: 25000 |
|
|
59 |
sampler: |
|
|
60 |
batch_shuffle: true |
|
|
61 |
batch_size: |
|
|
62 |
- 8 |
|
|
63 |
- 16 |
|
|
64 |
frames_num_fixed: 15 |
|
|
65 |
sample_type: fixed_unordered |
|
|
66 |
type: TripletSampler |
|
|
67 |
transform: |
|
|
68 |
- type: BaseRgbTransform |
|
|
69 |
- type: BaseSilTransform |