Giter Site home page Giter Site logo

gaiya2050 / deep-association-learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yanbeic/deep-association-learning

0.0 1.0 0.0 19.9 MB

Code on Paper [BMVC2018]Deep Association Learning for Unsupervised Video Person Re-identification

License: MIT License

Python 76.11% MATLAB 13.19% Shell 10.70%

deep-association-learning's Introduction

Deep-Association-Learning

Tensorflow Implementation of the paper Chen et al. Deep Association Learning for Unsupervised Video Person Re-identification. BMVC2018. You may refer to our poster for a quick overview.

Getting Started

Prerequisites:

  • Datasets: PRID2011 [3], iLIDS-VIDS [4], MARS [5].
  • Python 2.7.
  • Tensorflow version >= 1.4.0. (For model training)
  • Matlab. (For model evaluation)

Data preparation:

  1. Download ImageNet pretrained models: mobilenet_v1 [1], resnet_v1_50 [2].

  2. Convert image data to tfrecords. (Need to supply your paths in the following .sh file. Check the TODO comments in the .sh file.)

bash scripts/tf_convert_data.sh

Running Experiments

Training:

Train models and extract features. (Need to supply your paths in the following .sh file. Check the TODO comments in the .sh file.)

Model implementation include the following .py files:

  • train_dal.py: build and run the training graph.
  • association.py: build the anchor learning graph and compute the association losses.
  • network.py: define the network.
  • utils.py: data preparation.

For example, to train the DAL model using mobilenet_v1 on MARS, run the the following scripts.

bash scripts/train_MARS.sh

Note that you may modify the type of deep model by changing the flag --model_name (eg. --model_name=resnet_v1_50). You can also modify the number of gpus by changing the flag --num_gpus. (eg. --num_gpus=2).

Testing:

Test model performance in matlab. Evaluation codes are placed under the directory evaluation.

For examples, to test the DAL model performance trained on MARS in matlab, run the following command.

clear; model_name = 'mobilenet_b64_dal'; CMC_mAP_MARS

Citation

Please refer to the following if this repository is useful for your research.

Bibtex:

@inproceedings{chen2018bmvc,
  title={Deep Association Learning for Unsupervised Video Person Re-identification},
  author={Chen, Yanbei and Zhu, Xiatian and Gong, Shaogang},
  booktitle={Proceedings of the British Machine Vision Conference (BMVC)},
  year={2018}
}

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

References

[1] Howard et al. MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. arXiv 2017.
[2] He et al. Deep Residual Learning for Image Recognition. CVPR 2016.
[3] Hirzer et al. Person Re-Identification by Descriptive and Discriminative Classification. SCIA 2011.
[4] Wang et al. Person Re-Identification by Video Ranking. ECCV 2014.
[5] Zheng et al. MARS: A Video Benchmark for Large-Scale Person Re-identification. ECCV 2016.

Acknowledgements

This repository is partially built upon the tensorflow/models repository. The evaluation code (cmc & mAP) is partially borrowed from the MARS-evaluation repository.

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.