Coder Social home page Coder Social logo

ruiyoua / caffe-reid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhunzhong07/caffe-reid

0.0 1.0 0.0 39.36 MB

A Discriminatively Learned CNN Embedding for Person Re-identification, TOMM 2017

License: Other

CMake 2.80% Makefile 0.66% Shell 0.48% C++ 79.57% Cuda 5.67% MATLAB 0.88% Python 9.94%

caffe-reid's Introduction

A Discriminatively Learned CNN Embedding for Person Re-identification

A caffe-based implementation of this paper, providing whole training, testing and evaluation codes.

The official code (written in matconvnet) is available here.

Structure

Preparation

  • download Market-1501 dataset and put Market-1501 in $HOME/datasets/
  • cd examples/market1501/mat-codes and matlab -nodisplay -r 'generate_train(), exit()' to generate train, test and qurey data lists.
  • Build with NCLL / cuda-8.0 / cudnn-v5.1

Results on Market-1501

Market-1501 is one of the most popular person re-identification datasets.

Models can be found in models/market1501/model_name

Many scripts (e.g initialization, testing, training, extract feature and evaluation) can be found in examples/market1501/

[iter_size * batch_size] = real batch_size

CaffeNet

  • Link to the pre-trained CaffeNet model
  • python models/market1501/generate_caffenet.py for generate caffenet based person re-ID network and solver files.
  • sh models/market1501/caffenet/train.sh --gpu 0 for training models.
  • sh examples/market1501/extract/extract_prediction.sh 0 caffenet fc7 for extracting features of query and test data
  • cd examples/market1501/evaluation/ and evaluation('caffenet') to evaluate performance of the trained model on Market-1501
  • final results are [1x128] : mAP = 0.402689, r1 precision = 0.639846 [Euclidean]

GoogleNet

  • Link to the pre-trained GoogleNet model
  • GoogleNet-v1 model is already in models/market1501/googlenet
  • sh models/market1501/googlenet/train.sh --gpu 0
  • sh examples/market1501/extract/extract_prediction.sh 0 googlenet pool5/7x7_s1
  • cd examples/market1501/evaluation/ and evaluation('googlenet')
  • final results are : mAP = 0.511545, r1 precision = 0.735154 [Cos + Eucl]

VGG-16

  • Link to the pre-trained VGG-16 model
  • python models/market1501/generate_vgg16.py for generate caffenet based person re-ID network and solver files.
  • sh models/market1501/vgg16/train.sh --gpu 2,3 for training
  • sh examples/market1501/extract/extract_prediction.sh 0 vgg16 fc7 for extracting features
  • cd examples/market1501/evaluation/ and evaluation('vgg16') to evaluate performance of vgg16/fc7 on Market-1501
  • final results are [2x 24] : mAP = 0.456417, r1 precision = 0.677257

resnet-50

  • python models/market1501/generate_resnet50.py
  • sh models/market1501/res50/train.sh --gpu 2,3
  • sh examples/market1501/extract/extract_prediction.sh 0 res50 pool5
  • final results are : mAP = 0.585765, r1 precision = 0.790974 [Cos + Eucl]

Citation

Please cite the following papers in your publications if it helps your research:

@article{zheng2016discriminatively,
  title={A Discriminatively Learned CNN Embedding for Person Re-identification},
  author={Zheng, Zhedong and Zheng, Liang and Yang, Yi},
  journal={TOMM},
  year={2017}
}
@article{jia2014caffe,
  Author = {Jia, Yangqing and Shelhamer, Evan and Donahue, Jeff and Karayev, Sergey and Long, Jonathan and Girshick, Ross and Guadarrama, Sergio and Darrell, Trevor},
  Journal = {arXiv preprint arXiv:1408.5093},
  Title = {Caffe: Convolutional Architecture for Fast Feature Embedding},
  Year = {2014}
}

caffe-reid's People

Contributors

blgene avatar cdluminate avatar cypof avatar d-x-y avatar dgolden1 avatar eelstork avatar erictzeng avatar flx42 avatar intelfx avatar jamt9000 avatar jeffdonahue avatar jyegerlehner avatar kloudkl avatar longjon avatar lukeyeager avatar mavenlin avatar mohomran avatar mtamburrano avatar nitnelave avatar philkr avatar qipeng avatar rbgirshick avatar ronghanghu avatar sergeyk avatar sguada avatar shelhamer avatar tnarihi avatar willyd avatar yangqing avatar yosinski avatar

Watchers

 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.