Skip to content

Instantly share code, notes, and snippets.

@vaibhaw
Created July 14, 2016 15:22
Show Gist options
  • Save vaibhaw/5c090f01d23e4958a9681d5649c42c8d to your computer and use it in GitHub Desktop.
Save vaibhaw/5c090f01d23e4958a9681d5649c42c8d to your computer and use it in GitHub Desktop.
Running demo, training & testing of Faster-RCNN

Faster-RCNN Demo and Training

Demo

# Download pre-computed Faster R-CNN detectors
cd py-faster-rcnn
./data/scripts/fetch_faster_rcnn_models.sh

# To run the demo
./tools/demo.py

Training and testing

# Download the training, validation, test data and VOCdevkit
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCdevkit_08-Jun-2007.tar

# Extract all of these tars into one directory named VOCdevkit

tar xvf VOCtrainval_06-Nov-2007.tar
tar xvf VOCtest_06-Nov-2007.tar
tar xvf VOCdevkit_08-Jun-2007.tar

# It should have this basic structure
#
# $VOCdevkit/                           # development kit
# $VOCdevkit/VOCcode/                   # VOC utility code
# $VOCdevkit/VOC2007                    # image sets, annotations, etc.
# ... and several other directories ...


# Create symlinks for the PASCAL VOC dataset
cd py-faster-rcnn/data
ln -s $VOCdevkit VOCdevkit2007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment