Giter Club home page Giter Club logo

ucr-ccreid's Introduction

UCR

Implementation of paper "Unsupervised Lifelong Person Re-identification via Contrastive Rehearsal".

Installation

conda create -n env_ucr python=3.6
source activate env_ucr 
pip install numpy torch==1.4.0 torchvision==0.5.0 h5py six Pillow scipy sklearn metric-learn tqdm faiss-gpu==1.6.3
python setup.py develop

Prepare Datasets

cd examples && mkdir data

Download the raw datasets Market-1501, Cuhk-Sysu, MSMT17, VIPeR, PRID2011, GRID, iLIDS, CUHK01, CUHK02, SenseReID, CUHK03 and 3DPeS, and then unzip them under the directory like

UCR/examples/data
├── market1501
│   ├── bounding_box_train/
│   ├── bounding_box_test/
│   └── query/
├── cuhk-sysu
│   └── CUHK-SYSU
│       ├── Image/
│       └── annotation/
├── msmt17
│   └── MSMT17_V2
├── viper
│   └── VIPeR
├── prid2011
│   └── prid_2011
├── grid
│   └── underground_reid
├── ilids
│   └── i-LIDS_Pedestrian
├── cuhk01
│   └── campus
├── cuhk02
│   └── Dataset
├── sensereid
│   └── SenseReID
├── cuhk03
│   └── cuhk03_release
└── 3dpes
    └── 3DPeS

Train:

Train UCR on default order (Market to Cuhk-Sysu to MSMT17). The results reported in the paper were obtained with 4 GPUs.

Unsupervised lifelong training

sh unsupervised_lifelong.sh

Supervised lifelong training

sh supervised_lifelong.sh

Test:

python examples/test.py --init examples/logs/step3.pth.tar

Citation

If you find this project useful, please kindly star our project and cite our paper.

@article{chen2022unsupervised,
  title={Unsupervised Lifelong Person Re-identification via Contrastive Rehearsal},
  author={Chen, Hao and Lagadec, Benoit and Bremond, Francois},
  journal={arXiv preprint arXiv:2203.06468},
  year={2022}
}

ucr-ccreid's People

Contributors

chenhao2345 avatar dustin-nguyen-qil avatar

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.