当前位置:网站首页>深度学习——网络中的网络以及1x1卷积
深度学习——网络中的网络以及1x1卷积
2022-06-30 07:22:00 【头发没了还会再长】
1x1卷积
在架构内容设计方面,其中一个比较有帮助的想法是使用 1×1 卷积。
1x1卷积?
过滤器为 1×1,这里是数字 2,输入一张 6×6×1 的图片,然后对它做卷积,起过滤器大小为 1×1×1,结果相当于把这个图片乘以数字 2,所以前三个单元格分别是 2、4、6 等等。用 1×1 的过滤器进行卷积,似乎用处不大,只是对输入矩阵乘以某个数字。但这仅仅是对于6×6×1 的一个通道图片来说,1×1 卷积效果不佳。
如果是一张 6×6×32 的图片,那么使用 1×1 过滤器进行卷积效果更好。具体来说,1×1 卷积所实现的功能是遍历这 36 个单元格,计算左图中 32 个数字和过滤器中 32 个数字的元素积之和,然后应用 ReLU 非线性函数。这个 1×1×32 过滤器中的 32 个数字可以这样理解,一个神经元的输入是 32 个数字(输入图片中左下角位置 32 个通道中的数字),即相同高度和宽度上某一切片上的 32 个数字,这 32 个数字具有不同通道,乘以 32 个权重(将过滤器中的 32 个数理解为权重),然后应用 ReLU 非线性函数,在这里输出相应的结果。一般来说,如果过滤器不止一个,而是多个,就好像有多个输入单元,其输入内容为一个切片上所有数字,输出结果是 6×6 过滤器数量。
所以 1×1 卷积可以从根本上理解为对这 32 个不同的位置都应用一个全连接层,全连接层的作用是输入 32 个数字(过滤器数量标记为𝑛𝐶[𝑙+1],在这 36 个单元上重复此过程),输出结果是 6×6×#filters(过滤器数量),以便在输入层上实施一个非平凡(non-trivial)计算。这种方法通常称为1×1 卷积,有时也被称为Network in Network.
example
假设这是一个 28×28×192 的输入层,你可以使用池化层压缩它的高度和宽度,这个过程我们很清楚。但如果通道数量很大,该如何把它压缩为 28×28×32 维度的层呢?你可以用 32个大小为 1×1 的过滤器,严格来讲每个过滤器大小都是 1×1×192 维,因为过滤器中通道数量必须与输入层中通道的数量保持一致。但是你使用了 32 个过滤器,输出层为 28×28×32,
这就是压缩通道数(𝑛𝑐)的方法,对于池化层我只是压缩了这些层的高度和宽度。
边栏推荐
- December 4, 2021 - Introduction to macro genome analysis process tools
- Implementation of binary search in C language
- Digital white paper on total cost management in chain operation industry
- Processes, jobs, and services
- Use of ecostruxure (3) creating composite function blocks
- Stepper motor
- November 9, 2020 [wgs/gwas] - whole genome analysis (association analysis) process (Part 2)
- Installation software operation manual (continuous update)
- 期末複習-PHP學習筆記3-PHP流程控制語句
- Label the picture below the uniapp picture
猜你喜欢

期末复习-PHP学习笔记6-字符串处理

Examen final - notes d'apprentissage PHP 6 - traitement des chaînes

Use of ecostruxure (2) IEC61499 to establish function blocks

Deloitte: investment management industry outlook in 2022

線程池——C語言

Use of ecostruxure (3) creating composite function blocks

6月底了,可以开始做准备了,不然这么赚钱的行业就没你的份了

342 maps covering exquisite knowledge, one of which is classic and pasted on the wall

Cross compile opencv3.4 download cross compile tool chain and compile (3)

C language - student achievement management system
随机推荐
2021 China Enterprise Cloud index insight Report
Cadence physical library lef file syntax learning [continuous update]
2021 private equity fund market report (62 pages)
Proteus catalog component names and Chinese English cross reference
深度学习——嵌入矩阵and学习词嵌入andWord2Vec
Examen final - notes d'apprentissage PHP 5 - Tableau PHP
Commands and permissions for directories and files
Implementation of double linked list in C language
2021-10-27 [WGS] pacbio third generation methylation modification process
期末复习-PHP学习笔记8-mysql数据库
Efga design open source framework openlane series (I) development environment construction
February 14, 2022 [reading notes] - life science based on deep learning Chapter 2 Introduction to deep learning (Part 1)
Cross compile opencv3.4 download cross compile tool chain and compile (3)
Adjacency matrix representation of weighted undirected graph (implemented in C language)
期末复习-PHP学习笔记3-PHP流程控制语句
深度学习——LSTM
Multi whale capital: report on China's education intelligent hardware industry in 2022
Program acceleration
Use of ecostruxure (2) IEC61499 to establish function blocks
Final review -php learning notes 9-php session control


