Coder Social home page Coder Social logo

blockchainlover / person_search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shuangli59/person_search

0.0 1.0 0.0 7.55 MB

End-to-End Deep Learning for Person Search

Home Page: https://arxiv.org/abs/1604.01850

License: Other

CMake 1.43% Makefile 0.32% HTML 0.10% CSS 0.12% Jupyter Notebook 47.66% C++ 38.37% Shell 0.34% Python 7.50% Cuda 2.81% MATLAB 0.46% M 0.01% Protocol Buffer 0.76% C 0.13%

person_search's Introduction

Person Search Project

This repository hosts the code for our paper End-to-End Deep Learning for Person Search. The code is modified from the py-faster-rcnn written by Ross Girshick.

Requirements

  1. Requirements for Caffe and pycaffe (see: Caffe installation instructions)

Note: Caffe must be built with support for Python layers!

# In your Makefile.config, make sure to have this line uncommented
WITH_PYTHON_LAYER := 1
# Unrelatedly, it's also recommended that you use CUDNN
USE_CUDNN := 1

You can download my Makefile.config for reference. 2. Python packages you might not have: Cython, python-opencv, easydict (>=1.6), PyYAML 3. MATLAB is required for processing the raw data.

Installation

  1. Build the Cython modules

    cd lib
    make
  2. Build Caffe and pycaffe

    cd caffe-fast-rcnn
    # Now follow the Caffe installation instructions here:
    #   http://caffe.berkeleyvision.org/installation.html
    
    # If you're experienced with Caffe and have all of the requirements installed
    # and your Makefile.config in place, then simply do:
    make -j8 && make pycaffe

Experiments

  1. Request the dataset from sli [at] ee.cuhk.edu.hk (academic only)

  2. Convert the raw dataset into formatted database

    scripts/make_db.sh /path/to/the/downloaded/dataset.zip
  3. Pretraining

    data/scripts/fetch_imagenet_models.sh
    experiments/scripts/pretrain.sh

    Or you may directly download a pretrained model from here to output/psdb_pretrain/.

  4. Training and evaluation

    experiments/scripts/train.sh 0

    Or you may directly download a trained model from here to output/psdb_train/, and test the performance with

    python2 tools/test_net.py --gpu 0 \
      --gallery_def models/psdb/VGG16/test_gallery.prototxt \
      --probe_def models/psdb/VGG16/test_probe.prototxt \
      --net output/psdb_train/VGG16_iter_100000.caffemodel \
      --cfg experiments/cfgs/train.yml \
      --imdb psdb_test

    The result should be around

    mAP: 55.79%
    top-1: 62.17%

Citation

@article{xiaoli2016end,
  title={End-to-End Deep Learning for Person Search},
  author={Xiao, Tong and Li, Shuang and Wang, Bochao and Lin, Liang and Wang, Xiaogang},
  journal={arXiv:1604.01850},
  year={2016}
}

person_search's People

Contributors

cysu avatar ningzhou avatar shuangli59 avatar

Watchers

James Cloos 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.