Learn Before
Example

Region of Interest Pooling Computation Example

Consider an illustrative example of a region of interest (RoI) pooling layer computation. Suppose we select the upper-left 3×33 \times 3 region of interest on a 4×44 \times 4 input matrix and apply a 2×22 \times 2 RoI pooling layer. This pooling layer divides the 3×33 \times 3 region into a 2×22 \times 2 grid of subwindows to obtain a 2×22 \times 2 output. Because the subwindow dimensions must be integers, they are rounded up. The four resulting subwindows contain the following elements from the input matrix: 00, 11, 44, and 55; 22 and 66; 88 and 99; and 1010. By extracting the maximum value from each of these subwindows, the RoI pooling layer produces an output matrix containing 55, 66, 99, and 1010.

Image 0

0

1

Updated 2026-06-25

Tags

D2L

Dive into Deep Learning @ D2L