Skip to content

(TPAMI2024) Official implementation of Paper ''A Versatile Framework for Multi-scene Person Re-identification''

License

Notifications You must be signed in to change notification settings

iSEE-Laboratory/VersReID

Repository files navigation

VersReID

Official implementation of Paper ''A Versatile Framework for Multi-scene Person Re-identification''.

News

2024/4/3: The v-branch model checkpoint is released at Baidu Drive and Google Drive

2024/3/19: Our arxiv paper can be found here

2024/3/16: Code and Pre-trained model are released. Check Baidu Drive and Google Drive for the pre-trained model

Datasets

Please visit the following link to download the dataset.

Once you download the datasets, make sure to modify the dataset's root manually here and here.

Environments

Please follow TransReID to configure the running environment.

We provide our used package list in full-environment.txt for a reference.

Run

  • Download the pre-trained model at Baidu Drive or Google Drive.

  • Create a directory named ckpts and then put the downloaded model into it, or you can modify the MODEL.PRETRAIN_PATH in ./bash/run_VersReID.sh to your own pre-trained model path.

  • To reproduce the results in our paper, just simply run this script:

bash ./bash/run_VersReID.sh

You can modify the configs by yourself to explore more settings.

Note: Training the ReID-Bank requires ~20G GPU Memory, V-Branch requires ~30G GPU Memory. We highly recommend use cuda 10.2 for better reproducibility. Moreover, the code does not support multi-GPU training currently.

  • To test the provided v-branch checkpoint, you can download the checkpoint at Baidu Drive or Google Drive and run the below script:
python multi_scene_single_test.py --config_file configs/V-Branch.yml MODEL.DEVICE_ID "('0')" \
  MODEL.PRETRAIN_CHOICE none \
  TEST.WEIGHT /path/to/v-branch.pth \
  MODEL.AUX_LOSS True \
  OUTPUT_DIR logs/V-Branch/

python multi_scene_joint_test.py --config_file configs/V-Branch.yml MODEL.DEVICE_ID "('0')" \
  MODEL.PRETRAIN_CHOICE none \
  TEST.WEIGHT /path/to/v-branch.pth \
  MODEL.AUX_LOSS True \
  OUTPUT_DIR logs/V-Branch/

If you have any problem, feel free to open an issue or contact me :-)

Acknowledgement

  • This repository is heavily based on TransReID, many thanks to the authors.

  • If you find this repo helpful, please consider citing us:

@article{zheng2024versreid,
  title = {A Versatile Framework for Multi-scene Person Re-identification},
  author = {Zheng, Wei-Shi and Yan, Junkai and Peng, Yi-Xing},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2024}
}

About

(TPAMI2024) Official implementation of Paper ''A Versatile Framework for Multi-scene Person Re-identification''

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published