๐Ÿ”ฅLimited Offer: Get 50% OFFon AI & Full Stack Courses๐Ÿ”ฅ
Back to Deep Learning Notes
Topic #200

Fast R-CNN

Fast R-CNN (2015) directly attacks R-CNN's core inefficiency: instead of running the CNN separately for every proposed region, it runs the CNN just once per image, sharing that single feature map across every region.

Key Innovation: Run the CNN Once, Share the Result

Fast R-CNN passes the entire image through the CNN a single time, producing one feature map for the whole image. Region proposals (still generated externally, e.g. via Selective Search) are then mapped onto this already-computed shared feature map, rather than each region being independently reprocessed from scratch through the full CNN.

Key Innovation: ROI Pooling

Since different proposed regions have different shapes and sizes, but the following classification layers need a fixed-size input, Fast R-CNN introduces ROI (Region of Interest) Pooling โ€” a pooling operation (conceptually similar to Max Pooling, but with an adaptive window size) that takes each region's corresponding patch of the shared feature map and pools it down to a fixed spatial size, regardless of the region's original shape.

Diagram

Whole Image CNN (once) Shared Feature Map ROI 1 → pool → classify ROI 2 → pool → classify ROI 3 → pool → classify

One CNN pass produces a shared feature map; every region proposal reuses it via ROI pooling, instead of triggering a fresh CNN pass each time.

Advantages and Limitations

AdvantagesLimitations
Dramatically faster than R-CNN โ€” one CNN pass per image instead of thousandsStill depends on an external, non-learned region proposal algorithm (Selective Search), which is itself a speed bottleneck
End-to-end trainable for classification and box regression togetherRegion proposal generation remains a separate, non-differentiable step

Common Mistakes

  • Assuming Fast R-CNN eliminated the region-proposal bottleneck entirely โ€” it only fixed the redundant CNN feature extraction; the external proposal algorithm remained a separate step, which is exactly what Faster R-CNN addresses next.

Interview Relevance

Q: "What specific change did Fast R-CNN make to fix R-CNN's slowness, and what problem still remained?" It ran the CNN once per whole image, then used ROI Pooling to extract fixed-size features for each region proposal from that single shared feature map โ€” eliminating redundant CNN computation. It still relied on an external, separately-computed region proposal algorithm (Selective Search), which remained a speed bottleneck and wasn't learned jointly with the rest of the network.

Practice Question

Why does ROI Pooling need to produce a fixed-size output regardless of each region proposal's original size and aspect ratio?

Want to go beyond the notes?

Join CodingNow 2.0's Deep Learning course โ€” live mentorship, real projects, and 100% placement support.

Enroll Now โ€” Free Demo Available

Fast R-CNN โ€“ FAQs

Quick answers about learning Fast R-CNN in Deep Learning.

This free note from CodingNow 2.0 explains Fast R-CNN in Deep Learning โ€” concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every Deep Learning topic on CodingNow 2.0, including Fast R-CNN, is 100% free with no signup required.
With focused practice, most students grasp Fast R-CNN in 1โ€“3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) โ€” expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now