Skip to content
module

Fast R-CNN

3 members
lucid.models.vision.fast_rcnn

Fast R-CNN — object detection (Girshick, ICCV 2015).

Paper: "Fast R-CNN"

Object Detection
Paper

Girshick, Ross. "Fast R-CNN." Proceedings of the IEEE International Conference on Computer Vision, 2015, pp. 1440–1448.

Overview

Fast R-CNN closes the dominant performance gap of R-CNN — the one-CNN-forward-per-proposal cost — by sharing convolutional computation across all proposals in an image.

The CNN is run once on the full image, producing a feature map at stride ss (e.g. s=16s = 16 for VGG-16). For each region proposal, RoI Pooling extracts a fixed-size H×WH \times W (paper: 7×77 \times 7) sub-window from the shared feature map by quantising the proposal coordinates to the feature grid and max-pooling adaptively inside each cell.

The pooled features feed two FC layers and two sibling output heads:

L(p,u,tu,v)=Lcls(p,u)+λ [u≥1] Lloc(tu,v),L(p, u, t^u, v) = L_{\mathrm{cls}}(p, u) + \lambda \, [u \ge 1] \, L_{\mathrm{loc}}(t^u, v),

where LclsL_{\mathrm{cls}} is softmax log-loss over K+1K+1 classes and LlocL_{\mathrm{loc}} is the smooth ℓ1\ell_1 regression loss on the parameterised offsets tut^u for the predicted class uu. The Iverson bracket [u≥1][u \ge 1] disables regression on background RoIs.

Beyond the speedup (≈9× training, ≈213× inference over R-CNN), Fast R-CNN replaces the SVM + post-hoc regressor with a single multi-task network, which improves accuracy because gradients from both heads jointly tune the shared trunk.

Classes

Functions