Answers.Body: <p>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 <span class="math-container">$3 \times 3$</span> output volume picture, there's also still a white cell in the top right corner. That cell would get filled with whatever colour you choose to move to the right after the green one.</p>
  <p>The blue one would then follow after what I described above, as the fourth square. I guess the author simply didn't feel like drawing a third square to the right of the green one, because the red + green squares already illustrate how the pattern works. The blue one was probably additionally drawn to illustrate that stride works the same way vertically as it does horizontally, e.g. blue also moves down two rows (because stride = 2).</p>
  <p>See the bottom of the picture in the second answer <a href="https://qr.ae/pNKMsv" rel="nofollow noreferrer">here</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-04-11T09:13:34.387Z
Answers.LastActivityDate: 2020-06-22T17:00:17.147Z
Answers.LastEditDate: 2020-06-22T17:00:17.147Z
Answers.UserDisplayName: Dennis Soemers
Body: <p>I'm currently reading <a href="https://adeshpande3.github.io/adeshpande3.github.io/A-Beginner%27s-Guide-To-Understanding-Convolutional-Neural-Networks-Part-2/" rel="nofollow noreferrer">this</a> explanation of convolutional neural networks and there's a part around strides that I don't quite understand. I'm just starting with this, so I apologize if this is a really basic question. But I'm trying to develop an understanding and some of these images have thrown me off.</p>
  <p>Specifically, in this image</p>
  <p><a href="https://i.sstatic.net/zI3nb.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zI3nb.png" alt="enter image description here" /></a></p>
  <p>The stride has been increased to 2 and it's using a 3x3 filter (represented by the red, green and blue outline squares in the first picture)</p>
  <p>Why is the blue square below the red one and not shifted to the side of the green one ending at the edge of the 7x7 volume? Should it not move left to right then down 2 squares when it reaches the next line?</p>
  <p>I'm not sure if the author is just trying to show the stride moving down as it goes, but I think my confusion stems from the fact that the 1 stride image example is only moving in the horizontal direction (as seen below).</p>
  <p><a href="https://i.sstatic.net/P0r8c.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/P0r8c.png" alt="enter image description here" /></a></p>
  <p>Is there something fundamental I haven't grasped here?</p>
  
Tags: <deep-learning><convolutional-neural-networks><convolution><stride>
Title: Is my understanding of how the convolution with stride 2 works in this example correct?
UserDisplayName: TommyBs
ThreadText: # Is my understanding of how the convolution with stride 2 works in this example correct?
  
  (Asked by: username_0 on 2018-04-11)
  
  I'm currently reading [this](https://adeshpande3.github.io/adeshpande3.github.io/A-Beginner%27s-Guide-To-Understanding-Convolutional-Neural-Networks-Part-2/) explanation of convolutional neural networks and there's a part around strides that I don't quite understand. I'm just starting with this, so I apologize if this is a really basic question. But I'm trying to develop an understanding and some of these images have thrown me off.
  
  Specifically, in this image
  
  [![enter image description here](https://i.sstatic.net/zI3nb.png)](https://i.sstatic.net/zI3nb.png)
  
  The stride has been increased to 2 and it's using a 3x3 filter (represented by the red, green and blue outline squares in the first picture)
  
  Why is the blue square below the red one and not shifted to the side of the green one ending at the edge of the 7x7 volume? Should it not move left to right then down 2 squares when it reaches the next line?
  
  I'm not sure if the author is just trying to show the stride moving down as it goes, but I think my confusion stems from the fact that the 1 stride image example is only moving in the horizontal direction (as seen below).
  
  [![enter image description here](https://i.sstatic.net/P0r8c.png)](https://i.sstatic.net/P0r8c.png)
  
  Is there something fundamental I haven't grasped here?
  
  **Tags:** deep-learning, convolutional-neural-networks, convolution, stride
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-04-11. Score: 2 | Accepted answer
  
  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 in the top right corner. That cell would get filled with whatever colour you choose to move to the right after the green one.
  
  The blue one would then follow after what I described above, as the fourth square. I guess the author simply didn't feel like drawing a third square to the right of the green one, because the red + green squares already illustrate how the pattern works. The blue one was probably additionally drawn to illustrate that stride works the same way vertically as it does horizontally, e.g. blue also moves down two rows (because stride = 2).
  
  See the bottom of the picture in the second answer [here](https://qr.ae/pNKMsv).
  
  
  ---
  
  