资源算法caffe-faster-rcnn-resnet-fpn

caffe-faster-rcnn-resnet-fpn

2020-02-19 | |  42 |   0 |   0

Abstract

this respository is forked from [cafffe_faster_rcnn_renet]( https://github.com/Enia c-Xie/caffe-fast-rcnn.git), thanks for Eniac-Xie

Now I want to do:

  1. implement FPN(Feature Pyramid Network)

  2. Test on VOC

  3. Test on COCO

Faster-RCNN-ResNet

This code extends py-faster-rcnn by adding ResNet implementation and Online Hard Example Mining.

This is a ResNet Implementation for Faster-RCNN. The faster rcnn code is based on py-faster-rcnn. The ohem code is based on ohem. To reduce the memory usage, we use batchnorm layer in Microsoft's caffe

Modification

  1. The caffe-fast-rcnn we use is a little different from the one py-faster-rcnn use, it uses the batchnorm layer from Microsoft's caffe to reduce the memory usage.

  2. Using the in-place eltwise sum within the PR

  3. To reduce the memory usage, we also release a pretrained ResNet-101 model in which batchnorm layer's parameters is merged into scale layer's, see tools/merge_bn_scale.py form more detail.

  4. Use Online-Hard-Example-Mining while training.

Installation

The usage is similar to py-faster-rcnn.

  1. Clone this repository

git clone https://github.com/Eniac-Xie/faster-rcnn-resnet.git

We'll call the directory that you cloned faster-rcnn-resnet ROOT

  1. Clone the modified caffe-fast-rcnn

cd $ROOT/
git clone https://github.com/Eniac-Xie/caffe-fast-rcnn.git
  1. Build Cython module

 cd $ROOT/lib/
 make
  1. Build Caffe

 cd $ROOT/caffe-fast-rcnn
 make all -j8
 make pycaffe

Result


training datatest dataohemmAP@0.5
Faster-RCNN, ResNet-50VOC 07+12 trainvalVOC 07 testFalse78.78%
Faster-RCNN, ResNet-101VOC 07+12 trainvalVOC 07 testTrue79.44%

Testing

Download faster-rcnn-resnet weights from:

faster-rcnn-resnet without ohem (BaiduYun)

faster-rcnn-resnet without ohem (OneDrive)

faster-rcnn-resnet with ohem (BaiduYun)

faster-rcnn-resnet with ohem (OneDrive)

then you can do as follow:

 cd $ROOT/
 sh experiments/scripts/train_resnet101_bn_scale_merged_0712_end2end.sh
 make

or

 cd $ROOT/
 sh experiments/scripts/train_resnet101_bn_scale_merged_0712_end2end_ohem.sh
 make

Training

Download resnet-101 pretrained model, note that we use a modified version in which batchnorm layer's parameters is merged into scale layer's, you can download the model from Baidu Yun or OneDrive

then you can do as follow:

 cd $ROOT/
 sh experiments/scripts/train_resnet101_bn_scale_merged_0712_end2end.sh

or

 cd $ROOT/
 sh experiments/scripts/train_resnet101_bn_scale_merged_0712_end2end_ohem.sh


上一篇:FPN_Faster_RCNN

下一篇:faster_rcnn_cplusplus

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...