Code Monkey home page Code Monkey logo

sdl's Introduction

SDL

This project aims at re-identify person under different spectrum using disentanglement learning network. It is based on our IEEE-TCSVT 2020 paper.

Architecture

Screenshot

Dataset Preparation

(1) RegDB Dataset [1]: The RegDB dataset can be downloaded from this website by submitting a copyright form.

- (Named: "Dongguk Body-based Person Recognition Database (DBPerson-Recog-DB1)" on their website). 

(2) SYSU-MM01 Dataset [2]: The SYSU-MM01 dataset can be downloaded from this website.

Pre-processing

You need to manually define the data path first.

  • run Pre-processing/python pre_process_sysu.py to pepare the dataset, the training data will be stored in ".npy" format.

To add Random Erasing

  • run Pre-processing/Random Erasing/python pre_process_sysu.py

Training

Import the model from Models directory and Train the model by

python Train/training_filename --dataset sysu --lr 0.01 --drop 0.0 --trial 1 --gpu 1
  • training_filename: name of the training file.

  • --dataset: which dataset "sysu" or "regdb".

  • --lr: initial learning rate.

  • --drop: dropout ratio.

  • --trial: training trial (only for RegDB dataset).

  • --gpu: which gpu to run.

Manually define the data path first.

Training Log: The training log will be saved in log/" dataset_name"+ log. Final Model: It will be saved in save_model/.

Testing.

Test a model on SYSU-MM01 or RegDB dataset by

python Test/testing-filename.py --mode all --resume 'model_path' --gpu 1 --dataset sysu
  • testing-filename: name of the testing file.

  • --dataset: which dataset "sysu" or "regdb".

  • --mode: "all" or "indoor" all search or indoor search (only for sysu dataset).

  • --trial: testing trial (only for RegDB dataset).

  • --resume: the saved model path.

  • --gpu: which gpu to run.

Results

Screenshot

Citation

If you use any of the provided code, please cite:

@article{kansal2020sdl,
  title={SDL: Spectrum-Disentangled Representation Learning for Visible-Infrared Person Re-identification},
  author={Kansal, Kajal and Subramanyam, AV and Wang, Zheng and Satoh, Shin’ichi},
  journal={IEEE Transactions on Circuits and Systems for Video Technology},
  year={2020},
  publisher={IEEE}
}

Contact: [email protected]

sdl's People

Contributors

kajal15003 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

sdl's Issues

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.