RoI pooling
RoI pooling converts variable-sized regions of interest into fixed-size representations for uniform processing by subsequent neural-network layers.
Math and Architectures of Deep Learning
A pooling operation that converts variable-sized proposed regions into a fixed-size representation for downstream detection layers.
- How it is used
- Extracts shared convolutional features for region proposals before object classification and bounding-box regression.
- How deep it goes
- Explains coordinate mapping from image regions to feature maps and illustrates fixed-size max-pooled outputs.
- Examples
- Uses a 256 × 256 RoI mapped through a factor-16 backbone and a 2 × 2 pooled-output diagram.
- What you can do after
- Apply it via torchvision.ops.roi_pool in a Fast R-CNN RoI head for classification and localization.
Read how Math and Architectures of Deep Learning explains RoI pooling →
Inside Deep Learning: Math, Algorithms, Models
A pooling procedure that extracts fixed-size representations from variable-sized proposed regions so later layers can process them uniformly.
- How it is used
- Processes proposed feature-map regions uniformly before object classification in Faster R-CNN.
- How deep it goes
- Explains the pipeline and PyTorch layers, but stops short of implementing Faster R-CNN from scratch.
- Examples
- Uses stop-sign detection and a 7×7 AdaptiveMaxPool2d classification head.
- What you can do after
- Apply it via PyTorch using AdaptiveMaxPool2d, flattening, and fully connected prediction layers.
Read how Inside Deep Learning: Math, Algorithms, Models explains RoI pooling →
Related concepts
- max poolinguses · Max pooling is an aggregation operation that replaces each local or grouped region with its maximum value, often to downsample a representation.
- poolinguses · Pooling is an operation that aggregates values or representations across regions or axes to produce a reduced or summarized representation.
- Fast R-CNNused by · An object-detection architecture that computes convolutional features once per image and then performs region-wise classification and bounding-box regression.
- Faster R-CNNhas part · Faster R-CNN is an object-detection architecture that uses a learned region proposal network and detection heads to localize and classify objects in images.
- embeddingproduces · A numerical vector representation of an item or input that encodes features or relationships useful for computational tasks.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

