当前位置:网站首页>卷积神经网络(入门)
卷积神经网络(入门)
2022-07-02 10:52:00 【-小透明-】
一、卷积神经网络简介
通过输入层输入,然后根据几个卷积层就重复下面步骤几次,最后输出层输出。
卷积计算中的一个基本流程为:卷积-->ReLU(修正线性单元)-->池化(下采样)
然后进行全连接,根据权重计算概率,判断。
二、“详解”
1.卷积计算
将图像拆分成对应的特征点,被称为卷积核。
然后查看被识别图像有无对应的卷积核来确认其是否为目标物体。
目标图像经过 卷积核 得出的一个二维图为特征图。
2.激活函数
常用的:Relu:if x<0: y=0 else y=x
将卷积计算过的负数特征值全部转为0,不会改变特征。
3.池化
对于一个有大量细节(即特征),或者说相当数量分层级的细节来说,算法的复杂度很高。
所以有池化(层)(pooling)。池化就是将特征矩阵缩小,即缩小特征图(Feature Map)
两种池化方法:
1.最大池化:选择被扫描区域内的最大值作为Feature Map的一个特征值
2.平均池化:取被扫描区域内的平均值作为Feature Map的一个特征值
在处理边缘时的操作称为(Padding)
如果对图像采用最大池化,则在边缘补零来提取边缘特征
池化要求一定要保留原特征图的特征
4.全链接
对数组按目标图的数组权值操作得到一个判断是否为目标的概率数。利用大量数据训练进行机器学习来修正卷积核和全链接的行为。然后用反向传播(backpropagation)的算法不断修正用来处理特征数组的全连接,最后得到越来越精准的网络。
一开始的卷积核和全连接是随机的,人为指定的,只要喂给网络的数据和反馈足够多,最终可以得到一个比较好的算法网络。
卷积神经网络中常见英文解释
Filtering: The math behind the match 过滤:比对背后的数学
1. Line up the feature and the image patch.特征和图像补订对齐。
2. Multiply each image pixel by the corresponding feature pixel.将每个图像像素乘以相应的特征像素。
3. Add them up. 相加
4. Divide by the total number of pixels in the feature.除以特征中的总像素数(此处指碎片中的像素数量)。--->得到最终的像素值
Pooling: Shrinking the image stack:池化:缩小图像堆栈
1. Pick a window size (usually 2 or 3).选个2X2的window
2.Pick a stride (usually 2)将窗口向右移动一个步长2
3.Walk your window across your filtered images. 滑动窗口过滤图片
4. From each window, take the maximum value.依次记录最大值
完成这个步骤之后,我们得到一个相似的,但是更小的图。依然可以看到最大值组成的特征都在。
以上是看完视频的总结。
强推视频(太牛了!):大白话讲解卷积神经网络工作原理_哔哩哔哩_bilibili
边栏推荐
- BeanUtils -- shallow copy -- example / principle
- rxjs Observable 自定义 Operator 的开发技巧
- 【模板】最长公共子序列 (【DP or 贪心】板子)
- How to set QT manual layout
- Dangbei projection 4K laser projection X3 Pro received unanimous praise: 10000 yuan projector preferred
- Go operation redis
- QT new project_ MyNotepad++
- Quarkus学习四 - 项目开发到部署
- Halcon extract orange (Orange)
- In 2021, the global styrene butadiene styrene (SBS) revenue was about $3722.7 million, and it is expected to reach $5679.6 million in 2028
猜你喜欢

浏览器驱动的下载

Development skills of rxjs observable custom operator

Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?

MySQL 45 lecture - learning from the actual battle of geek time MySQL 45 Lecture Notes - 04 | easy to understand index (Part 1)

腾讯云 TStor 统一存储通过信通院首批文件存储基础能力评测

PyQt5_QScrollArea内容保存成图片

Federated Search: all requirements in search

Essential elements of science fiction 3D scenes - City

Runhe hi3516 development board openharmony small system and standard system burning

Pycharm连接远程服务器
随机推荐
Data consistency between redis and database
693. Travel sequencing (map + topology)
P1908 reverse sequence pair
Methods of software testing
Story point vs. Human Sky
Browser driven Download
ensp简单入门
D language, possible 'string plug-ins'
Getting started with QT - making a simple calculator
Sum of the first n terms of Fibonacci (fast power of matrix)
浏览器驱动的下载
Mysql5.7 installation super easy tutorial
刚好1000粉丝,记录一下
给Android程序员的一些面试建议「建议收藏」
selenium 在pycharm中安装selenium
Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?
selenium的特点
Origin绘制热重TG和微分热重DTG曲线
使用BLoC 构建 Flutter的页面实例
MySQL -- convert rownum in Oracle to MySQL