当前位置:网站首页>CNN--Introduction to each layer
CNN--Introduction to each layer
2022-07-31 07:46:00 【奇迹的粉丝】
卷积层Convolutional
给定卷积核,Where the convolution kernel is applied to the corresponding dimension of the input image features,计算乘积,The figure below shows the step sizestride=1为例,Get the final output layer features.


假设输入大小为(H,W),滤波器大小为(FH,FW),输出大小为(OH,OW),填充padding为P,步幅stride为S
O H = H + 2 P − F H S + 1 O W = W + 2 P − F W S + 1 OH=\frac{H+2P-FH}{S}+1\\ OW=\frac{W+2P-FW}{S}+1 OH=SH+2P−FH+1OW=SW+2P−FW+1
For multi-channel convolution calculations,Similar to the single channel calculation method,Just add the calculated values for each channel at the end


Convolution operation for multiple convolution kernels:


填充Padding
after each convolution,The output dimension is reduced,according to the size of the input image,The dimensions of the output image may become too small after several rounds of convolution,At the same time, the pixels on the edge are less than the pixels in the middle,This also ignores part of the image data,为了解决这个问题,PaddingBy padding data at the edges,To achieve the effect of keeping the input and output image dimensions consistent.

池化层Pooling
Pooling layer to reduce the size of the special row data,And make some feature detection more robust.如果使用一个 4 × 4 4\times4 4×4的矩阵,Max池化层和MeanThe result after the pooling layer is processed separately is shown below,这个过程很简单.在示例中,filter是2×2,stride为 2,So divide the input into four parts 2 × 2 2\times2 2×2 的子区域,Max和MeanThen, the maximum and mean values of the corresponding sub-regions are output respectively
的子区域,Max和MeanThen, the maximum and mean values of the corresponding sub-regions are output respectively
The above picture is from《深度学习入门:基于Python的理论与实现》and web images
边栏推荐
- 关于求反三角函数的三角函数值
- Leetcode952. Calculate maximum component size by common factor
- Kubernetes调度
- How to set the computer password?How to add "safety lock" to your computer
- 文件 - 04 下载文件: 根据文件下载链接下载文件
- 科普 | “大姨太”ETH 和 “小姨太”ETC的爱恨情仇
- Yu Mr Series 】 【 2022 July 022 - Go Go teaching course of container in the dictionary
- 2022.07.29_每日一题
- 2022.07.13_每日一题
- DAY18:XSS 漏洞
猜你喜欢
随机推荐
基于LSTM的诗词生成
2022.07.14_每日一题
2022.07.14_每日一题
2022.07.15_每日一题
2022.07.13_每日一题
2022.07.29_Daily Question
Conditional statements of shell (test, if, case)
2022.07.14_Daily Question
项目 - 如何根据最近30天、最近14天、最近7天、最近24小时、自定义时间范围查询MySQL中的数据?
Detailed explanation of js prototype
2022.07.13_每日一题
事务的四大特性
gstreamer's caps event and new_segment event
ros小乌龟画图
在 ASP.NET Core 应用程序启动时运行代码的 3 种方法
文件 - 05 下载文件:根据文件Id下载文件
2022.07.18 _ a day
LeetCode:952. 按公因数计算最大组件大小【欧拉筛 + 并查集】
The Ballad of Lushan Sends Lu's Servant to the Void Boat
2022.07.18_每日一题









