I know what meaning stride has when it is just an integer number (by which step you should apply filter to image). But what about (1, 1)
or even more dimensional stride?
相关问题
- How to use Reshape keras layer with two None dimen
- How to conditionally scale values in Keras Lambda
- Trying to understand Pytorch's implementation
- Convolutional Neural Network seems to be randomly
- How to convert Onnx model (.onnx) to Tensorflow (.
相关文章
- How to downgrade to cuda 10.0 in arch linux?
- How to use cross_val_score with random_state
- How to measure overfitting when train and validati
- McNemar's test in Python and comparison of cla
- How to disable keras warnings?
- TensorFlow Eager Mode: How to restore a model from
- Invert MinMaxScaler from scikit_learn
- How should I vectorize the following list of lists
The stride defines how the filter is moved along the input image (tensor). Nothing stops you from striding along different axes differently, e.g.,
stride=[1, 2]
means move 1px at a time along 0 axis, and 2px at a time along 1 axis. This particular combination isn't common, but possible.Tensorflow API goes even further and allows custom striding for all axes of the 4D input tensor (see
tf.nn.conv2d
). Using this API it's not uncommon to setstrides=[1, 2, 2, 1]
, which makes perfect sense: it should process each image (the first1
) and each input channel (the last1
), but apply2x2
striding of the spatial dimensions. As far as the convolution is concerned, the operation is applicable for anystrides
array, however not values are equally useful.Highly recommend this CS231n tutorial for more detail on this.