This folder contains the code and pretrained model for GaitRef: Gait Recognition with Refined Sequential Skeletons ([Paper]). We provide the python script with the processed data during submission, which we will replace with data-preprocessing python files in our final version.
We have tested our code and model on a single NVIDIA 3090 gpu with Centos 8 as well as A40 gpu on Ubuntu 18.04, with python 3.7.13, CUDA 11.1, pytorch 1.8.1.
A suggestion for this is to use conda and create an environment as follows
conda create -n gaitref python=3.7.13
conda activate gaitref
After you create a python 3.7.13, please use the following command for installing required PyTorch
pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt
Since silhouettes and skeletons for CASIA-B are publicly available online ([Silhouettes Link], [Skeleton Link]), for simplicity, we directly provide the processed data we used along with the pretrained models in the following link [drive]. Please download both of the files and place them in the current directory. Unzip them with the commands below
tar -xzf CASIA-B-mix.tar.gz
tar -xzf pretrained.tar.gz
For other datasets, please contact the dataset owner for downloading the silhouettes and skeletons.
To produce the numbers for GaitMix, please use the following command and replace the GPU id with the id you want (>6 GB memory available and please only use ONE gpu for the default config)
CUDA_VISIBLE_DEVICES=0 python -m torch.distributed.launch --nproc_per_node=1 lib/main.py --cfgs ./config/gaitglmix.yaml --phase test
For GaitRef, please use the following
CUDA_VISIBLE_DEVICES=0 python -m torch.distributed.launch --nproc_per_node=1 lib/main.py --cfgs ./config/gaitglref.yaml --phase test