Answers.Body: <blockquote>
    <p>Why are we going from one image of <span class="math-container">$224 \times 224 \times 3$</span> to two images of <span class="math-container">$224 \times 224 \times 64$</span>?</p>
  </blockquote>
  
  <p>They do a Convolution with a <span class="math-container">$1 \times 1$</span> kernel, with <span class="math-container">$64$</span> filters. That way, you keep your size as the inputs (<span class="math-container">$224 \times 224$</span>), but changes the number of filters to 64.</p>
  
  <p>And this is not two image, but two layers !</p>
  
  <blockquote>
    <p>Why does this halving continue? What is this meant to represent?</p>
  </blockquote>
  
  <p>This is the maxpooling operation (the layer is in red colour, see the legend). In general, max pooling is applied with a kernel stride of 2 (rarely 3, but not more, because you lose too much informations). That way your size is cut by 2, and the activation maps are more little, and you have faster computation.</p>
  
  <blockquote>
    <p>It continues on to <span class="math-container">$56 \times 56 \times 256$</span>. Why does this number continue to halve, and the number, at the end, the <span class="math-container">$256$</span>, continues to double?</p>
  </blockquote>
  
  <p>Still max-pooling. There are no reason to double the numbers of filters, though. This just a trend, but you can put the numbers of filters that you want.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-13T15:55:55.233Z
Answers.LastActivityDate: 2019-04-12T18:52:22.350Z
Answers.LastEditDate: 2019-04-12T18:52:22.350Z
Answers.UserDisplayName: Jérémy Blain
Answers.Body: <p>The number of feature maps is increased because we increased the number of filters that are applied throughout the process.</p>
  <h3>Here is the reason why:</h3>
  <hr />
  <p>Filters at first layers would find simple features like lines and edges. Subsequent layers would take those features -in other words, patterns- and combine them to create much bigger patterns.</p>
  <p>Therefore we should increase the size of the filters to meet the increased size of complexity. Since the filter size increased, the number of feature maps would increase as a result.</p>
  <p>Also, keep in mind that filters at the deeper layers tend to find more complicated features.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-01-17T23:31:44.873Z
Answers.LastActivityDate: 2023-01-17T23:31:44.873Z
Answers.UserDisplayName: murat.sahin.dev
Body: <p>I found the below image of how a CNN works </p>
  
  <p><a href="https://i.sstatic.net/I5nj1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/I5nj1.png" alt="Image"></a></p>
  
  <p>But I don't really understand it. I think I do understand CNNs, but I find this diagram very confusing. </p>
  
  <p>My simplified understanding: </p>
  
  <ul>
  <li>Features are selected</li>
  <li><p>Convolution is carried out so that to see where these features fit (repeated with every feature, in every position)</p></li>
  <li><p>Pooling is used to shrink large images down (select the best fit feature).</p></li>
  <li><p>ReLU is used to remove your negatives</p></li>
  <li><p>Fully-connected layers contribute weighted votes towards deciding what class the image should be in.</p></li>
  <li><p>These are added together, and you have your % chance of what class the image is.</p></li>
  </ul>
  
  <p>Confusing points of this image to me:</p>
  
  <ul>
  <li><p>Why are we going from one image of <span class="math-container">$224 \times 224 \times 3$</span> to two images of <span class="math-container">$224 \times 224 \times 64$</span>? Why does this halving continue? What is this meant to represent?</p></li>
  <li><p>It continues on to <span class="math-container">$56 \times 56 \times 256$</span>. Why does this number continue to halve, and the number, at the end, the <span class="math-container">$256$</span>, continues to double?</p></li>
  </ul>
  
Tags: <machine-learning><deep-learning><convolutional-neural-networks><vgg>
Title: Why does the number of feature maps increases in the VGG model?
UserDisplayName: Ahmed Maruppan
ThreadText: # Why does the number of feature maps increases in the VGG model?
  
  (Asked by: username_0 on 2018-11-13)
  
  I found the below image of how a CNN works
  
  [![Image](https://i.sstatic.net/I5nj1.png)](https://i.sstatic.net/I5nj1.png)
  
  But I don't really understand it. I think I do understand CNNs, but I find this diagram very confusing.
  
  My simplified understanding:
  
  * Features are selected
  * Convolution is carried out so that to see where these features fit (repeated with every feature, in every position)
  * Pooling is used to shrink large images down (select the best fit feature).
  * ReLU is used to remove your negatives
  * Fully-connected layers contribute weighted votes towards deciding what class the image should be in.
  * These are added together, and you have your % chance of what class the image is.
  
  Confusing points of this image to me:
  
  * Why are we going from one image of $224 \times 224 \times 3$ to two images of $224 \times 224 \times 64$? Why does this halving continue? What is this meant to represent?
  * It continues on to $56 \times 56 \times 256$. Why does this number continue to halve, and the number, at the end, the $256$, continues to double?
  
  **Tags:** machine-learning, deep-learning, convolutional-neural-networks, vgg
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-11-13. Score: 3
  
  > Why are we going from one image of $224 \times 224 \times 3$ to two images of $224 \times 224 \times 64$?
  
  They do a Convolution with a $1 \times 1$ kernel, with $64$ filters. That way, you keep your size as the inputs ($224 \times 224$), but changes the number of filters to 64.
  
  And this is not two image, but two layers !
  
  > Why does this halving continue? What is this meant to represent?
  
  This is the maxpooling operation (the layer is in red colour, see the legend). In general, max pooling is applied with a kernel stride of 2 (rarely 3, but not more, because you lose too much informations). That way your size is cut by 2, and the activation maps are more little, and you have faster computation.
  
  > It continues on to $56 \times 56 \times 256$. Why does this number continue to halve, and the number, at the end, the $256$, continues to double?
  
  Still max-pooling. There are no reason to double the numbers of filters, though. This just a trend, but you can put the numbers of filters that you want.
  
  
  ---
  
  ### Answer by username_2 on 2023-01-17. Score: 1
  
  The number of feature maps is increased because we increased the number of filters that are applied throughout the process.
  
  ### Here is the reason why:
  
  ---
  
  Filters at first layers would find simple features like lines and edges. Subsequent layers would take those features -in other words, patterns- and combine them to create much bigger patterns.
  
  Therefore we should increase the size of the filters to meet the increased size of complexity. Since the filter size increased, the number of feature maps would increase as a result.
  
  Also, keep in mind that filters at the deeper layers tend to find more complicated features.
  
  
  ---
  
  