Git Product home page Git Product logo

rl-multishot-reid's Introduction

Multi-shot Re-identification Based on Reinforcement Learning


Training and testing codes for multi-shot Re-Identification. Currently, these codes are tested on the PRID-2011 dataset, iLiDS-VID dataset and MARS dataset. For algorithm details and experiment results, please refer our paper: Multi-shot Pedestrian Re-identification via Sequential Decision Making

Preparations


Before starting running this code, you should make the following preparations:

Usage


  • Download the datasets and unzip.
  • Prepare data file. Generate image list file according to the file preprocess_ilds_image.py , preprocess_prid_image.py and preprocess_mars_image.py under baseline folder.
  • The code is split to two stage, the first stage is a image based re-id task, please refer the script run.sh in baseline folder. The codes for this stage is based on this repo. The usage is:
sh run.sh $gpu $dataset $network $recfloder

e.g. If you want to train MARS dataset on gpu 0 using inception-bn, please run:

sh run.sh 0 MARS inception-bn /data3/matt/MARS/recs
  • The second stage is a multi-shot re-id task based on reinforcement learning. Please refer the script run.sh in RL folder. The usage is:
sh run.sh $gpu $unsure-penalty $dataset $network $recfloder
  • For evaluation, please use baseline/baseline_test.py and RL/find_eg.py. In RL/find_eg.py, we also show some example episodes with good quality generated by our algorithm.

rl-multishot-reid's People

Contributors

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