This is the code for the paper Hierarchical Spatio-Temporal Representation Learning for Gait Recognition.
Our code is running on a server with 8 GeForce RTX 3090 GPUs and a CPU model Intel(R) Core(TM) i7-9800X @ 3.80GHz.
- pytorch = 1.10
- torchvision
- pyyaml
- tensorboard
- opencv-python
- tqdm
Train a model by
CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 opengait/main.py --cfgs ./configs/htsl/hstl.yaml --phase train
python -m torch.distributed.launchDDP launch instruction.--nproc_per_nodeThe number of gpus to use, and it must equal the length ofCUDA_VISIBLE_DEVICES.--cfgsThe path to config file.--phaseSpecified astrain.
--log_to_fileIf specified, the terminal log will be written on disk simultaneously.
You can run commands in train.sh for training different models.
Evaluate the trained model by
CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 opengait/main.py --cfgs ./configs/htsl/hstl.yaml --phase test
--phaseSpecified astest.--iterSpecify a iteration checkpoint.
Tip: Other arguments are the same as train phase.
You can run commands in test.sh for testing different models.
- The codebase is based on OpenGait.
@InProceedings{Wang_2023_ICCV,
author = {Wang, Lei and Liu, Bo and Liang, Fangfang and Wang, Bincheng},
title = {Hierarchical Spatio-Temporal Representation Learning for Gait Recognition},
booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
month = {October},
year = {2023},
pages = {19639-19649}
}