Hot answers tagged

5 votes
Accepted

What is the meaning of a 2D stride?

Your stride will be just an integer number only when doing 1D convolution. When doing 2D convolution you get 2 integers like your example: (1, 1). When there is ...
  • 24.7k
3 votes

Is the stride applied both in the horizontal and vertical directions in convolutional neural networks?

Yes, in Keras you can apply different strides by giving a tuple/list, specifying the value of strides along the height and width. If you just give a single value the API assumes the same value for all ...
3 votes

Is the stride applied both in the horizontal and vertical directions in convolutional neural networks?

Yes, in Keras this is simply implemented by using a tuple for the stride argument of a convolutional layer, with each element of the tuple corresponding to the stride of each dimension.
3 votes
Accepted

Is down-sampling the only purpose of using stride?

The general purpose of stride (along with padding) is to determine the spatial dimensions of the output. So, with appropriate stride (and padding), you can also make the spatial dimensions of the ...
  • 35k
2 votes
Accepted

What is the stride information of an image referring here?

Do they mean the strides that are related to the CNN, pooling, etc., or are they referring to any other stride information? The stride referred to by the quote "only plays with the size and ...
  • 24.7k
2 votes
Accepted

Is my understanding of how the convolution with stride 2 works in this example correct?

Yes, you're right, after the green one, it should also move two steps (because stride = 2) to the right once more. Note that in the $3 \times 3$ output volume picture, there's also still a white cell ...
  • 9,519
1 vote

Do all filters of the same convolutional layer need to have the same dimensions and stride?

It seems that a similar question has been raised here: https://stackoverflow.com/questions/57438922/different-size-filters-in-the-same-layer-with-tensorflow-2-0 Like answered in the link above, you ...

Only top scored, non community-wiki answers of a minimum length are eligible