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
Before starting running this code, you should make the following preparations:
preprocess_ilds_image.py
, preprocess_prid_image.py
and preprocess_mars_image.py
under baseline
folder.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
run.sh
in RL
folder. The usage is:
sh run.sh $gpu $unsure-penalty $dataset $network $recfloder
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.