Home

Awesome

SOLIDER on [Person Re-identification]

PWC PWC

This repo provides details about how to use SOLIDER pretrained representation on person re-identification task. We modify the code from TransReID, and you can refer to the original repo for more details.

Installation and Datasets

We use python version 3.7, PyTorch version 1.7.1, CUDA 10.1 and torchvision 0.8.2. More details of installation and dataset preparation can be found in TransReID-SSL.

Prepare Pre-trained Models

You can download models from SOLIDER, or use SOLIDER to train your own models. Before training, you should convert the models first.

python convert_model.py path/to/SOLIDER/log/lup/swin_tiny/checkpoint.pth path/to/SOLIDER/log/lup/swin_tiny/checkpoint_tea.pth

Training

We utilize 1 GPU for training. Please modify the MODEL.PRETRAIN_PATH, DATASETS.ROOT_DIR and OUTPUT_DIR in the config file.

sh run.sh

Test

sh runtest.sh

Performance

MethodModelMSMT17<br>(w/o RK)Market1501<br>(w/o RK)MSMT17<br>(with RK)Market1501<br>(with RK)
SOLIDERSwin Tiny67.4/85.9<br>(Link,Log)91.6/96.1<br>(Link,Log)81.5/89.295.3/96.6
SOLIDERSwin Small76.9/90.8<br>(Link,Log)93.3/96.6<br>(Link,Log)86.5/91.795.4/96.4
SOLIDERSwin Base77.1/90.7<br>(Link,Log)93.9/96.9<br>(Link,Log)86.5/91.795.6/96.7

Citation

If you find this code useful for your research, please cite our paper

@inproceedings{chen2023beyond,
  title={Beyond Appearance: a Semantic Controllable Self-Supervised Learning Framework for Human-Centric Visual Tasks},
  author={Weihua Chen and Xianzhe Xu and Jian Jia and Hao Luo and Yaohua Wang and Fan Wang and Rong Jin and Xiuyu Sun},
  booktitle={The IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year={2023},
}