Giter Club home page Giter Club logo

ssan's Introduction

Semantically Self-Aligned Network for Text-to-Image Part-aware Person Re-identification

LICENSE Python PyTorch

We provide the code for reproducing result of our paper Semantically Self-Aligned Network for Text-to-Image Part-aware Person Re-identification.

Getting Started

Dataset Preparation

  1. CUHK-PEDES

    Organize them in dataset folder as follows:

    |-- dataset/
    |   |-- <CUHK-PEDES>/
    |       |-- imgs
                |-- cam_a
                |-- cam_b
                |-- ...
    |       |-- reid_raw.json
    
    

    Download the CUHK-PEDES dataset from here and then run the process_CUHK_data.py as follow:

    cd SSAN
    python ./dataset/process_CUHK_data.py
    
  2. ICFG-PEDES

    Organize them in dataset folder as follows:

    |-- dataset/
    |   |-- <ICFG-PEDES>/
    |       |-- imgs
                |-- test
                |-- train 
    |       |-- ICFG_PEDES.json
    
    

    Note that our ICFG-PEDES is collect from MSMT17 and thus we keep its storage structure in order to avoid the loss of information such as camera label, shooting time, etc. Therefore, the file testand train here are not the way ICFG-PEDES is divided. The exact division of ICFG-PEDES is determined by ICFG-PDES.json. The ICFG-PDES.json is organized like the reid_raw.json in CUHK-PEDES .

    Please request the ICFG-PEDES database from [email protected] and then run the process_ICFG_data.py as follow:

    cd SSAN
    python ./dataset/process_ICFG_data.py
    

Training and Testing

sh experiments/CUHK-PEDES/train.sh 
sh experiments/ICFG-PEDES/train.sh 

Evaluation

sh experiments/CUHK-PEDES/test.sh 
sh experiments/ICFG-PEDES/test.sh 

Results on CUHK-PEDES and ICFG-PEDES

Our Results on CUHK-PEDES dataset

Our Results on ICFG-PEDES dataset

Citation

If this work is helpful for your research, please cite our work:

@article{ding2021semantically,
  title={Semantically Self-Aligned Network for Text-to-Image Part-aware Person Re-identification},
  author={Ding, Zefeng and Ding, Changxing and Shao, Zhiyin and Tao, Dacheng},
  journal={arXiv preprint arXiv:2107.12666},
  year={2021}
}

ssan's People

Contributors

zifyloo 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.