Skip to content

🧱DGReID: Domain Generalization Person ReID Baseline

License

Notifications You must be signed in to change notification settings

hbchen121/dgreid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python >=3.7 PyTorch >=1.1

Domain Generalization Person ReID Baseline

This repository is the code for the Baseline in Style Variable and Irrelevant Learning for Generalizable Person Re-identification. The overall code will be released later.

Requirements

Installation

git clone ...
cd dgreid/reid/evaluation_metrics/rank_cylib && make all

Prepare Datasets

Download the person re-ID datasets Market-1501, DukeMTMC-ReID, MSMT17, and cuhk03. Then unzip them under the root directory like

/data/datasets/
├── dukemtmc
│   └── DukeMTMC-reID
├── market1501
│   └── Market-1501-v15.09.15
├── msmt17
│   └── MSMT17_V1
├── cuhk03
    └── cuhk03_release

Training

By default we utilize 4 GTX-2080TI GPUs for training. Note that

  • The multi-source domains are trained parallel with DP.
  • More details of configs in reid/config/default_parser.py

Quickly Start

To train the baseline methods, run commands like:

# Base Baseline (w/o meta learning)
CUDA_VISIBLE_DEVICES=0,1,2,3 sh scripts/base_baseline.sh

# Strong Baseline (w/ Meta learning)
CUDA_VISIBLE_DEVICES=0,1,2,3 sh scripts/meta_baseline.sh

Citation

If you find our work is useful for your research, please kindly cite our paper

@misc{chen2022style,
      title={Style Variable and Irrelevant Learning for Generalizable Person Re-identification}, 
      author={Haobo Chen and Chuyang Zhao and Kai Tu and Junru Chen and Yadong Li and Boxun Li},
      year={2022},
      eprint={2209.05235},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

If you have any questions, please leave an issue or contact us: hbchen121@gmail.com or cy.zhao15@gmail.com

Acknowledgement

Our code is based on MMT and IDM.

About

🧱DGReID: Domain Generalization Person ReID Baseline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages