No description or website provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 0e53244 Mar 12, 2017
Failed to load latest commit information.
experiments/cfgs R-FCN implementation Mar 12, 2017
faster_rcnn R-FCN implementation Mar 12, 2017 Update Mar 12, 2017 R-FCN implementation Mar 12, 2017 R-FCN implementation Mar 12, 2017 R-FCN implementation Mar 12, 2017

Region-based FCN implemented with PyTorch

This is a PyTorch implementation of R-FCN for object detection. This project is mainly based on faster_rcnn_pytorch

For details about R-FCN please refer to the paper R-FCN: Object Detection via Region-based Fully Convolutional Networks by Jifeng Dai, Yi Li, Kaiming He, Jian Sun.


  1. Clone the this repository

    git clone
  2. Build the Cython modules for nms and the psroi_pooling layer

    cd faster_rcnn_pytorch/faster_rcnn

The psroi pooling layer is defined in the folder faster_rcnn/psroi_pooling, and the whole detection network is implemented in faster_rcnn/

Training on Pascal VOC 2007

Follow this project (TFFRCNN) to download and prepare the training, validation, test data and the VGG16 model pre-trained on ImageNet.

Since the program loading the data in faster_rcnn_pytorch/data by default, you can set the data path as following.

cd faster_rcnn_pytorch
mkdir data
cd data
ln -s $VOCdevkit VOCdevkit2007

The speed for training the rfcn with VGG16 on a Nvidia Titan X(Pascal) is 4.9 fps, and 12 fps for testing.

You can set some hyper-parameters in and training parameters in the .yml file.

Training with TensorBoard

With the aid of Crayon, we can access the visualisation power of TensorBoard for any deep learning framework.

To use the TensorBoard, install Crayon ( and set use_tensorboard = True in faster_rcnn/


Set the path of the trained model in

cd faster_rcnn_pytorch
mkdir output