update gaitedge and use data_in_use

This commit is contained in:
darkliang
2022-07-19 17:34:20 +08:00
parent 4b681fb9bd
commit 8edfc80326
7 changed files with 66 additions and 24 deletions
+25 -3
View File
@@ -4,11 +4,12 @@ This [paper](https://arxiv.org/abs/2203.03972) has been accepted by ECCV 2022.
## Abstract
Gait is one of the most promising biometrics to identify individuals at a long distance. Although most previous methods have focused on recognizing the silhouettes, several end-to-end methods that extract gait features directly from RGB images perform better. However, we demonstrate that these end-to-end methods may inevitably suffer from the gait-irrelevant noises, i.e., low-level texture and colorful information. Experimentally, we design the **cross-domain** evaluation to support this view. In this work, we propose a novel end-to-end framework named **GaitEdge** which can effectively block gait-irrelevant information and release end-to-end training potential Specifically, GaitEdge synthesizes the output of the pedestrian segmentation network and then feeds it to the subsequent recognition network, where the synthetic silhouettes consist of trainable edges of bodies and fixed interiors to limit the information that the recognition network receives. Besides, **GaitAlign** for aligning silhouettes is embedded into the GaitEdge without losing differentiability. Experimental results on CASIA-B and our newly built TTG-200 indicate that GaitEdge significantly outperforms the previous methods and provides a more practical end-to-end paradigm.
![img](../../assets/gaitedge.png)
## CASIA-B*
Since the silhouettes of CASIA-B were obtained by the outdated background subtraction, there exists much noise caused by the background and clothes of subjects. Hence, we re-annotate the
silhouettes of CASIA-B and denote it as CASIA-B*. Refer to [here](../../datasets/CASIA-B*/README.md) for more details.
silhouettes of CASIA-B and denote it as CASIA-B*. You can visit [this link](http://www.cbsr.ia.ac.cn/english/Gait%20Databases.asp) to apply for CASIA-B*. More details about CASIA-B* can be found in [this link](../../datasets/CASIA-B*/README.md).
## Performance
| Model | NM | BG | CL | TTG-200 (cross-domain) | Configuration |
|:----------:|:----:|:----:|:----:|:----------------------:|:----------------------------------------------:|
@@ -16,4 +17,25 @@ silhouettes of CASIA-B and denote it as CASIA-B*. Refer to [here](../../datasets
| GaitGL-E2E | 99.1 | 98.2 | 89.1 | 45.6 | [phase2_e2e.yaml](./phase2_e2e.yaml) |
| GaitEdge | 98.0 | 96.3 | 88.0 | 53.9 | [phase2_gaitedge.yaml](./phase2_gaitedge.yaml) |
***The results here are higher than those in the paper because we use a different optimization strategy. But this does not affect the conclusion of the paper.***
***The results here are higher than those in the paper because we use a different optimization strategy. But this does not affect the conclusion of the paper.***
## Citation
```bibtex
@inproceedings{yu2006framework,
title={A framework for evaluating the effect of view angle, clothing and carrying condition on gait recognition},
author={Yu, Shiqi and Tan, Daoliang and Tan, Tieniu},
booktitle={18th International Conference on Pattern Recognition (ICPR'06)},
volume={4},
pages={441--444},
year={2006},
organization={IEEE}
}
@article{liang2022gaitedge,
title={GaitEdge: Beyond Plain End-to-end Gait Recognition for Better Practicality},
author={Liang, Junhao and Fan, Chao and Hou, Saihui and Shen, Chuanfu and Huang, Yongzhen and Yu, Shiqi},
journal={arXiv preprint arXiv:2203.03972},
year={2022}
}
```
+3 -2
View File
@@ -2,13 +2,14 @@
data_cfg:
dataset_name: CASIA-B*
dataset_root: your_path
data_in_use: [true, false, false, false]
dataset_partition: ./datasets/CASIA-B*/CASIA-B*.json
num_workers: 1
remove_no_gallery: false
test_dataset_name: CASIA-B
evaluator_cfg:
enable_float16: true
enable_float16: true
restore_ckpt_strict: true
restore_hint: 80000
save_name: GaitGL
@@ -66,4 +67,4 @@ trainer_cfg:
sample_type: fixed_ordered
type: TripletSampler
transform:
- type: BaseSilTransform
- type: BaseSilTransform
+8 -9
View File
@@ -2,13 +2,14 @@
data_cfg:
dataset_name: CASIA-B*
dataset_root: your_path
data_in_use: [false, false, true, true]
dataset_partition: ./datasets/CASIA-B*/CASIA-B*.json
num_workers: 1
remove_no_gallery: false
test_dataset_name: CASIA-B
evaluator_cfg:
enable_float16: true
enable_float16: true
restore_ckpt_strict: true
restore_hint: 30000
save_name: Segmentation
@@ -17,17 +18,15 @@ evaluator_cfg:
batch_size: 4
sample_type: all_ordered
type: InferenceSampler
frames_all_limit: 720
frames_all_limit: 720
transform:
- type: NoOperation
- type: BaseRgbTransform
- type: BaseSilTransform
loss_cfg:
- loss_term_weight: 1.0
type: BinaryCrossEntropyLoss
log_prefix: bce
kld: false
model_cfg:
model: Segmentation
@@ -45,6 +44,7 @@ scheduler_cfg:
gamma: 0.1
milestones: # Learning Rate Reduction at each milestones
- 10000
- 15000
- 20000
scheduler: MultiStepLR
@@ -54,9 +54,9 @@ trainer_cfg:
log_iter: 100
restore_ckpt_strict: true
restore_hint: 0
save_iter: 10000
save_iter: 5000
save_name: Segmentation
total_iter: 30000
total_iter: 25000
sampler:
batch_shuffle: true
batch_size:
@@ -66,6 +66,5 @@ trainer_cfg:
sample_type: fixed_unordered
type: TripletSampler
transform:
- type: NoOperation
- type: BaseRgbTransform
- type: BaseSilTransform
- type: BaseSilTransform
+4 -3
View File
@@ -1,6 +1,7 @@
data_cfg:
dataset_name: CASIA-B*
dataset_root: your_path
data_in_use: [false, true, true, true]
dataset_partition: ./datasets/CASIA-B*/CASIA-B*.json
num_workers: 1
remove_no_gallery: false # Remove probe if no gallery for it
@@ -68,9 +69,9 @@ trainer_cfg:
optimizer_reset: true
scheduler_reset: true
sync_BN: true
restore_hint:
- /home/leeeung/workspace/OpenGait/output/CASIA-B_new/Segmentation/Segmentation/checkpoints/Segmentation-25000.pt
- /home/leeeung/OpenGait/output/CASIA-B_new/GaitGL/GaitGL/checkpoints/GaitGL-80000.pt
restore_hint:
- /home/leeeung/workspace/OpenGait/output/CASIA-B_new/Segmentation/Segmentation/checkpoints/Segmentation-25000.pt
- /home/leeeung/OpenGait/output/CASIA-B_new/GaitGL/GaitGL/checkpoints/GaitGL-80000.pt
save_iter: 2000
save_name: GaitGL_E2E
total_iter: 20000
+4 -3
View File
@@ -1,6 +1,7 @@
data_cfg:
dataset_name: CASIA-B*
dataset_root: your_path
data_in_use: [false, true, true, true]
dataset_partition: ./datasets/CASIA-B*/CASIA-B*.json
num_workers: 1
remove_no_gallery: false # Remove probe if no gallery for it
@@ -68,9 +69,9 @@ trainer_cfg:
optimizer_reset: true
scheduler_reset: true
sync_BN: true
restore_hint:
- Segmentation-30000.pt
- GaitGL-80000.pt
restore_hint:
- Segmentation-30000.pt
- GaitGL-80000.pt
save_iter: 2000
save_name: GaitEdge
total_iter: 20000