Questions tagged [pooling]

For questions related to the pooling (aka downsampling or subsampling) operation/layers, in particular, in the context of convolutional neural networks. There are also specific tags for max-pooling and average pooling.

Filter by
Sorted by
Tagged with
0 votes
1 answer
116 views

Is there a correct order of "conv2d", "batchnorm2d", "ReLU/LeakyReLU", "MaxPool2d" for UNet like architectures?

Context I'm investigating the UNet architecture for a little while now. After investigating the structure of the official UNet architecture as proposed in the official paper I noticed a recurrent ...
timu vlad's user avatar
0 votes
0 answers
19 views

How to interpret CNN output image? CNN expressive enough for particle positions?

Let us suppose we have a squared grid and some particles (active vertices) that are distributed on it. We can construct a 2D image, where basically the input image is a matrix with 0s (no particle) ...
relaxon's user avatar
  • 31
1 vote
0 answers
29 views

Order of multiple Convolutional and Pooling layers in generated CNNs

I am reading this article: https://www.sciencedirect.com/science/article/pii/S2210650221000249 There, a multi layered particle swarm optimization of CNN parameters is presented. First step (layer) is ...
mbostic's user avatar
  • 111
2 votes
1 answer
200 views

Is down-sampling the only purpose of using stride?

Stride is used in at least two operations: convolution and pooling. Both operations can be viewed as applying a kernel function on input using a kernel (filter). Stride determines the amount of "...
hanugm's user avatar
  • 3,581
2 votes
1 answer
188 views

Is there any reason behind bias towards max pooling over avg pooling?

Consider the following excerpt taken from the chapter named Using convolutions to generalize from the textbook titled Deep Learning with PyTorch by Eli Stevens et al. Downsampling could in principle ...
hanugm's user avatar
  • 3,581
1 vote
1 answer
38 views

Is there any recommended way to perform pooling in this context?

Suppose I have three batches of feature maps, each of size $180 \times 100 \times 100$. I want to concatenate all these feature maps channel-wise, and then resize them into a single feature map. The ...
hanugm's user avatar
  • 3,581
3 votes
1 answer
243 views

How do I choose the hyper-parameters for a model to detect different guitar chords?

I need to build a hand detector that recognizes the chord played by a hand on a guitar. I read this article Static Hand Gesture Recognition using Convolutional Neural Network with Data Augmentation ...
Deffo's user avatar
  • 83
2 votes
0 answers
27 views

Is there any closed form analytical expression to represent fractional max pooling?

There are Nineteen types of pooling layers in PyTorch. Almost all of the layers are provided with corresponding analytical formulae. But analytical formulae are not provided for the fractional max-...
hanugm's user avatar
  • 3,581
1 vote
0 answers
122 views

DeepLabV3: Why use global average pooling in the ASPP module?

I'm trying to understand the rationale of the various modifications the authors of the DeepLab models have made to their third version, DeepLabV3. In the paper, the following is written: ASPP with ...
Sytze's user avatar
  • 111
2 votes
0 answers
129 views

What are the purposes of pooling in CNNs?

There are at least three questions on this site related to this What is the effect of using pooling layers in CNNs? Is pooling a kind of dropout? What are the benefits of using max-pooling in ...
hanugm's user avatar
  • 3,581
1 vote
1 answer
246 views

How do you pass the image from one convolutional layer to another in a CNN?

I am currently trying to write a CNN from scratch, but I don't understand how to feed the information from a max-pooling layer to the next convolutional layer. Specifically, I don't know what to do ...
Sean Mabli's user avatar
1 vote
1 answer
363 views

Is average pooling equivalent to a strided convolution with a specific constant kernel?

It seems to me that average pooling can be replaced by a strided convolution with a constant kernel. For instance, a 3x3 pooling would be equivalent to a strided convolution (of stride $3$) with a $3 \...
1110101001's user avatar
1 vote
1 answer
507 views

What is the time complexity of the upsampling stage of the U-net?

I am trying to determine the complexity of the neural network we use. The neural network is a U-net generator with an input shape of NxN (not an image but image-like data) and output of the same shape....
Ruli's user avatar
  • 153
1 vote
0 answers
86 views

How can the FCNN reduce the dimensions of the input from $1048 \times 100$ to $523 \times 100$ with max-pooling?

I am trying to implement a paper on Image tempering detection and localization, the paper is Image Manipulation Detection and Localization Based on the Dual-Domain Convolutional Neural Networks, I was ...
kiran's user avatar
  • 21
3 votes
2 answers
679 views

What is the effect of using pooling layers in CNNs?

I know how pooling works, and what effect it has on the input dimensions - but I'm not sure why it's done in the first place. It'd be great if someone could provide some intuition behind it - while ...
stoic-santiago's user avatar
1 vote
1 answer
293 views

In Fast R-CNN, how are input RoIs mapped to the respective RoIs in the feature map before RoI pooling?

I've been reading the Fast R-CNN paper. My understanding is that the input to one forward pass is the whole input image plus a list of RoIs (generated by selective search or another region proposal ...
Alexander Soare's user avatar
1 vote
0 answers
159 views

What's the difference in using multiple convolutional layers and no pooling versus using a single convolutional layer and a single max pooling layer?

I'm currently working on a college project in which I'm designing a Deep Q-Network that takes images/frames as an input. I've been searching online to see how other people have designed their ...
Eoin Mc Allister's user avatar
3 votes
3 answers
538 views

Does a fully convolutional network share the same translation invariance properties we get from networks that use max-pooling?

Does a fully convolutional network share the same translation invariance properties we get from networks that use max-pooling? If not, why do they perform as well as networks which use max-pooling?
FourierFlux's user avatar
4 votes
1 answer
3k views

Is a non-linear activation function needed if we perform max-pooling after the convolution layer?

Is there any need to use a non-linear activation function (ReLU, LeakyReLU, Sigmoid, etc.) if the result of the convolution layer is passed through the sliding window max function, like max-pooling, ...
Kasia's user avatar
  • 173
2 votes
2 answers
1k views

How can we compute the gradient of max pooling with overlapping regions?

While studying backpropagation in CNNs, I can't understand how can we compute the gradient of max pooling with overlapping regions. That's also a question from this quiz and can be also found on this ...
estamos's user avatar
  • 157
5 votes
2 answers
644 views

Can CNNs be applied to non-image data, given that the convolution and pooling operations are mainly applied to imagery?

When using CNNs for non-image (times series) data prediction, what are some constraints or things to look out for as compared to image data? To be more precise, I notice there are different types of ...
nilsinelabore's user avatar
1 vote
1 answer
102 views

How can max-pooling be applied to find features in words?

I'm reading about max-pooling in a dynamic CNN paper. I can see how it can help find features in images, given that the pixel with the highest density gets pooled, but how does it help to find ...
user8714896's user avatar
5 votes
1 answer
1k views

How many weights does the max-pooling layer have?

How many weights does the max-pooling layer have? For example, if there are 10 inputs, a pooling filter of size 2, stride 2, how many weights, including bias, does a max-pooling layer have?
Tibby's user avatar
  • 53
4 votes
1 answer
554 views

Is it effective to concatenate the results of mean-pooling and max-pooling?

Is it popular or effective to concatenate the results of mean-pooling and max-pooling, to get the invariance of the latter and the expressivity of the former?
user3180's user avatar
  • 598
5 votes
1 answer
2k views

What are the benefits of using max-pooling in convolutional neural networks?

I am reading Francois Chollet's Deep learning with Python, and I came across a section about max-pooling that's really giving me trouble. I am unable to copy-paste the content, so I've included ...
An Ignorant Wanderer's user avatar
4 votes
2 answers
1k views

Is max-pooling really bad?

Hinton doesn't believe in the pooling operation (video). I also heard that many max-pooling layers have been replaced by convolutional layers in recent years, is that true?
user559678's user avatar
5 votes
2 answers
3k views

Is pooling a kind of dropout?

If I got well the idea of dropout, it allows improving the sparsity of the information that comes from one layer to another by setting some weights to zero. On the other hand, pooling, let's say max-...
nsaura's user avatar
  • 258
2 votes
1 answer
109 views

Why do we have to dot product in the Low-rank Bilinear Pooling?

I was reading this paper Hadamard Product for Low-rank Bilinear Pooling. I understand what they are trying to say, but I don't know why we have to convert the element-wise multiplication into a scalar ...
user20755's user avatar
0 votes
1 answer
146 views

In the inception neural network, how is an image of shape $224 \times 224 \times 3$ converted into one of shape $112 \times 112 \times 64$?

According to the original paper on page 4, $224 \times 224 \times 3$ image is reduced to $112 \times 112 \times 64$ using a filter $7 \times 7$ and stride $2$ after convolution. $n \times n = 224 \...
Santhosh Dhaipule Chandrakanth's user avatar
10 votes
1 answer
4k views

Can non-differentiable layer be used in a neural network, if it's not learned?

For example, AFAIK, the pooling layer in a CNN is not differentiable, but it can be used because it's not learning. Is it always true?
RedRus's user avatar
  • 133
2 votes
1 answer
542 views

In which scenario would you want to have two adjacent pooling layers?

In which scenario, when assembling a CNN, would you want to have two adjacent pooling layers, without a convolutional layer in between?
Gaius's user avatar
  • 162