Advertisement
naren_paste

2nd_Convolution Layer

Aug 16th, 2023
1,097
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.15 KB | Writing | 0 0
  1. Mathematically, let's say you have:
  2. - Input image or feature map from the previous layer: I (with dimensions Height x Width x Number of Channels).
  3. - Filters: F (with dimensions Filter Height x Filter Width x Number of Input Channels x Number of Output Channels).
  4.  
  5. For each position (i, j) in the output feature map (let's call it O) of the second convolutional layer:
  6. - Take a receptive field from the previous layer (I) that corresponds to the size of the filter. This receptive field is centered around the position (i, j).
  7. - Perform an element-wise multiplication between the filter weights (F) and the values in the receptive field (I) at that position.
  8. - Sum up the results of the element-wise multiplication to get a single value at position (i, j) in the output feature map.
  9.  
  10. Mathematically, this can be represented as:
  11. O(i, j, k) = Σ Σ Σ Σ ( I(a, b, c) * F(p, q, c, k) )
  12.  
  13. Where:
  14. O(i, j, k) is the value in the output feature map at position (i, j) for the k-th filter.
  15. I(a, b, c) is the value in the input feature map at position (a, b) in channel c.
  16. F(p, q, c, k) is the weight of the filter at position (p, q) for input channel c and output channel k.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement