liveBook · Manning

Faster R-CNN

As explained in Math and Architectures of Deep Learning

An object-detection model that combines a region proposal network, RoI pooling, and classification/regression heads to detect and localize objects in images.

Faster R-CNN is a two-stage object detector that replaces CPU-bound selective search with a learned region proposal network. A convolutional backbone extracts feature maps; the RPN proposes regions, and a Fast R-CNN module classifies and localizes objects from them. The RPN and detection module share convolutional layers, improving efficiency and proposal quality. section 11.3.3 section 11.4

The detection pipeline combines these components:

  • The convolutional backbone converts an input image into feature maps. section 11.4
  • The region proposal network operates on the feature maps and emits candidate regions across multiple scales and aspect ratios. section 11.4 section 11.5
  • RoI pooling converts regions of varying sizes into fixed-sized feature vectors. section 11.4
  • Fully connected layers produce softmax scores for object classes plus background and bounding-box coordinates for each class. section 11.4
  • Non-maxima suppression removes duplicate overlapping detections. section 11.5

Training must preserve the shared convolutional backbone. Alternate optimization trains the RPN and Fast R-CNN in repeated rounds; approximate joint training merges them, combines their losses, and backpropagates together while treating generated proposals as fixed. Joint training is faster but ignores the derivative through the proposal-generation step. section 11.4.4 section 11.4.4

A forward pass

An image first becomes a convolutional feature map. The RPN evaluates sliding-window locations with multiple anchor boxes and proposes candidate regions. RoI pooling turns those regions into uniform vectors, which the classifier labels and the regressor refines into bounding boxes before overlapping results are deduplicated. section 11.5 section 11.5

Figure 11.12 architecture. (Source: “Faster R-CNN: Toward real-time proposal networks”; https://arxiv.org/abs/1506.01497.)

Use the architecture figure to follow the shared convolutional backbone from image features through RPN proposals, RoI pooling, classification, and regression. section 11.4

How Math and Architectures of Deep Learning covers it

How deep it goes
Traces architecture, anchors, RoI pooling, outputs, shared layers, and two training procedures, including approximate optimization.
Examples
Uses feature maps, sliding-window anchors, candidate RoIs, fixed-sized vectors, class scores, box coordinates, and duplicate suppression.
What it assumes
Assumes familiarity with convolutional feature extraction and Fast R-CNN while teaching RPN proposals and shared training.
What you can do after
Build and train a two-stage detector with shared convolutional features using alternate or approximate joint optimization.
How it connects
Connects convolutional backbones, region proposal networks, Fast R-CNN, RoI pooling, anchor boxes, bounding-box regression, and non-maxima suppression.

Also explained in

Compare how 2 books explain Faster R-CNN →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Math and Architectures of Deep Learning. The section links point to the parts of the book it draws on.