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 3imes33 imes 3 region of interest on a 4imes44 imes 4 input matrix and apply a 2imes22 imes 2 RoI pooling layer. This pooling layer divides the 3imes33 imes 3 region into a 2imes22 imes 2 grid of subwindows to obtain a 2imes22 imes 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: 0,1,4,0, 1, 4, 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 5,6,9,5, 6, 9, and 1010.

Image 0

0

1

Updated 2026-05-21

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L