GithubHelp home page GithubHelp logo

cw1204772 / stgal Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 172.43 MB

Code for "Space-Time Guided Association Learning For Unsupervised Person Re-Identification"

Python 90.41% Shell 9.59%
re-identification re-id multi-camera-tracking

stgal's Introduction

STGAL: Space-Time Guided Association Learning For Unsupervised Person Re-Identification

This is the code for paper: "Space-Time Guided Association Learning For Unsupervised Person Re-Identification." IEEE International Conference on Image Processing, 2020.
[project page] [paper]

Requirement

We use Python 3.5, Pytorch 0.4.1 in this project. To install required modules, run:

pip3 install -r requirements.txt

Setup

First, set up database files for following datasets.

  • Market-1501: Download the dataset to <PATH_TO_MARKET> and run:
    bash setup.sh Market <PATH_TO_MARKET>
    
  • DukeMTMC-ReID: Download the dataset to <PATH_TO_DUKE> and run:
    bash setup.sh DukeReID <PATH_TO_DUKE>
    

Run

Train & Test for Market-1501

  1. Pretrain on intra-camera data with SSTT[1] (our triplet loss variant):

    bash market/stage1.sh <STAGE1_MODEL_DIR>
    

    * <STAGE1_MODEL_DIR>: Dir to save trained models

  2. Construct traveling patterns & label estiamtion:

    bash market/stage1_fusion.sh <STAGE1_CKPT_PATH>
    

    * <STAGE1_CKPT_PATH>: A trained model from the previous step

  3. Training:

    bash market/stage2.sh <STAGE2_MODEL_DIR> <STAGE1_CKPT_PATH>
    

    * <STAGE2_MODEL_DIR>: Dir to save trained models * <STAGE1_CKPT_PATH>: The same trained model used in the previous step

  4. Inference:

    bash market/stage2_fusion.sh <STAGE2_CKPT_PATH>
    

    * <STAGE2_CKPT_PATH>: The same trained model used in the previous step CMC rank-{1,5,10,20} accuracy and mAP of the 2 settings should appear on the screen:

    • Without fusion probability: Inference with visual similarity
    • With fusion probability: Inference with association probability (visual & traveling probability)

Train & Test for DukeMTMC-ReID

  1. Pretrain on intra-camera data with SSTT[1] (our triplet loss variant):

    bash dukereid/stage1.sh <STAGE1_MODEL_DIR>
    

    * <STAGE1_MODEL_DIR>: Dir to save trained models

  2. Construct traveling patterns & label estiamtion:

    bash dukereid/stage1_fusion.sh <STAGE1_CKPT_PATH>
    

    * <STAGE1_CKPT_PATH>: A trained model from the previous step

  3. Training:

    bash dukereid/stage2.sh <STAGE2_MODEL_DIR> <STAGE1_CKPT_PATH>
    

    * <STAGE2_MODEL_DIR>: Dir to save trained models * <STAGE1_CKPT_PATH>: The same trained model used in the previous step

  4. Inference:

    bash dukereid/stage2_fusion.sh <STAGE2_CKPT_PATH>
    

    * <STAGE2_CKPT_PATH>: The same trained model used in the previous step CMC rank-{1,5,10,20} accuracy and mAP of the 2 settings should appear on the screen:

    • Without fusion probability: Inference with visual similarity
    • With fusion probability: Inference with association probability (visual & traveling probability)

Reference

  1. Minxian Li, Xiatian Zhu, and Shaogang Gong, “Unsupervised person re-identification by deep learning tracklet association,” in ECCV, 2018, pp. 737–753.

Citation

@inproceedings{wu2020stgal,
	title={Space-Time Guided Association Learning For Unsupervised Person Re-Identification},
	author={Wu, Chih-Wei and Liu, Chih-Ting and Tu, Wei-Chih and Tsao, Yu and Wang, Yu-Chiang Frank and Chien, Shao-Yi},
	booktitle={2020 IEEE International Conference on Image Processing (ICIP)},
	pages={2261--2265},
	year={2020},
	organization={IEEE}
}

stgal's People

Contributors

cw1204772 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

brahimmade

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.