Git Product home page Git Product logo

last's Introduction

LaST: Large-Scale Spatio-Temporal Person Re-identification

[Project] [Paper]

This repository contains the source code for loading the LaST dataset and evaluating its generalization.

Details

LaST is a large-scale dataset with more than 228k pedestrian images. It is used to study the scenario that pedestrians have a large activity scope and time span. Although collected from movies, we have selected suitable frames and labeled them as carefully as possible. Besides the identity label, we also labeled the clothes of pedestrians in the training set.

  • Train: 5000 identities and 71,248 images.
  • Val: 56 identities and 21,379 images.
  • Test: 5806 identities and 135,529 images.

Note: You can download LaST from these links: BaiduPan with password: vvfe. or Googledrive.

Prerequisites

  • Python 3.7
  • PyTorch 1.6
  • Torchvision 0.7.0
  • Cuda10.2

Experiments

Train LaST with BoT

python last_train_bot.py --train 1 --data_dir /data/last/ --logs_dir ./20210407_last_bot_base

Direct Transfer

Training Set PRCC Celeb-reID
R1 mAP R1 mAP
ImageNet 24.7% 13.5% 28.7% 3.0%
Market1501 29.0% 24.3% 36.7% 3.7%
DukeMTMC 28.3% 24.1% 40.9% 4.6%
MSMT17 26.2% 24.6% 43.4% 5.0%
LaST 39.3% 32.6% 47.0% 7.0%
  1. Put the pre-trained model in the folder "pre_feat". For example, last_ini_imagenet.pth.
./pre_feat/last_ini_imagenet.pth
  1. Modify the loaded model name as follows:
last_model_wts = torch.load(os.path.join('pre_feat', 'last_ini_imagenet.pth'))
  1. Start Testing
python prcc_train_base_last.py --train 0 --data_dir /data/prcc/ --logs_dir ./pre_feat

Domain Adaptation

Pre-Training PRCC Celeb-reID
R1 mAP R1 mAP
ImageNet 43.1% 41.3% 49.2% 8.7%
Market1501 44.3% 43.1% 49.3% 8.7%
DukeMTMC 43.9% 44.2% 49.8% 8.9%
MSMT17 43.7% 44.1% 51.0% 9.0%
LaST 54.4% 54.3% 56.1% 11.7%
  1. Put the pre-trained model in the folder "pre_feat". For example, last_ini_imagenet.pth.
./pre_feat/last_ini_imagenet.pth
  1. Start Training
python prcc_train_base_last.py --train 1 --data_dir /data/prcc/ --logs_dir ./20210205_prcc_base_last_sgd

Citation

Please kindly cite this paper in your publications if it helps your research:

@article{shu2021large,
  title={Large-Scale Spatio-Temporal Person Re-identification: Algorithm and Benchmark},
  author={Shu, Xiujun and Wang, Xiao and Zang, Xianghao and Zhang, Shiliang and Chen, Yuanqi and Li, Ge and Tian, Qi},
  journal={IEEE Transactions on Circuits and Systems for Video Technology},
  pages={4390-4403},
  year={2022}
}

Related Work

We forked the projects in Person_reID_baseline_pytorch, fast-reid, deep-person-reid and reid-strong-baseline. Thank the authors for their great work.

License

The dataset and code are released for academic research use only. If you have questions, please contact [email protected]

last's People

Contributors

shuxjweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

last's Issues

The mAP loss is not found.

Hi, I checked your code but I didn't find the mAP loss. And is your "_base.py" means that the baseline is BoT?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.