Fast R-CNN
3 memberslucid.models.vision.fast_rcnnFast R-CNN — object detection (Girshick, ICCV 2015).
Paper: "Fast R-CNN"
Girshick, Ross. "Fast R-CNN." Proceedings of the IEEE International Conference on Computer Vision, 2015, pp. 1440–1448.
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 (e.g. for VGG-16). For each region proposal, RoI Pooling extracts a fixed-size (paper: ) 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:
where is softmax log-loss over classes and is the smooth regression loss on the parameterised offsets for the predicted class . The Iverson bracket 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.