当前位置:网站首页>Deep learning - networks in networks and 1x1 convolution
Deep learning - networks in networks and 1x1 convolution
2022-06-30 07:43:00 【Hair will grow again without it】
1x1 Convolution
In terms of architecture content design , One of the more helpful ideas is to use 1×1 Convolution .
1x1 Convolution ?
The filter for 1×1, Here are the numbers 2, Enter a 6×6×1 Pictures of the , And then convolute it , The size of the lifting filter is 1×1×1, The result is equivalent to multiplying this picture by a number 2, So the first three cells are 2、4、6 wait . use 1×1 The filter is convoluted , It doesn't seem to be very useful , Just multiply the input matrix by a number . But this is only for 6×6×1 A channel image of ,1×1 Convolution effect is not good .
If it's a 6×6×32 Pictures of the , So use 1×1 The filter performs better convolution . say concretely ,1×1 The function of convolution is to traverse this 36 A cell , Calculate... In the left picture 32 Number and filter 32 The sum of the elements of a number , Then apply ReLU Nonlinear functions . This 1×1×32 In the filter 32 A number can be understood in this way , The input of a neuron is 32 A digital ( Enter the position of the lower left corner of the picture 32 Numbers in channels ), That is to say, on the same height and width 32 A digital , this 32 Numbers have different channels , multiply 32 A weight ( Put... In the filter 32 The number is understood as the weight ), Then apply ReLU Nonlinear functions , Output the corresponding result here . Generally speaking , If there is more than one filter , It's more than one. , It's like having multiple input units , Its input content is all numbers on a slice , The output is 6×6 Number of filters .
therefore 1×1 Convolution can be fundamentally understood as For this 32 A full connection layer is applied to all different locations , The role of the full connection layer is to input 32 A digital ( The number of filters is marked 𝑛𝐶[𝑙+1], Here 36 Repeat on units ), The output is 6×6×#filters( Number of filters ), In order to implement a nontrivial on the input layer (non-trivial) Calculation . This method is usually called1×1 Convolution
, Sometimes calledNetwork in Network
.
example
Suppose this is a 28×28×192 The input layer of , You can use the pooling layer to compress its height and width , This process is very clear to us . But if the number of channels is large , The How to compress it into 28×28×32 The dimension layer ? you It can be used 32 Size is 1×1 Filter , Strictly speaking, the size of each filter is 1×1×192 dimension , Because the number of channels in the filter must be the same as the number of channels in the input layer . But you used 32 A filter , The output layer is 28×28×32,
This is the number of compression channels (𝑛𝑐) Methods
, For the pool layer I just compressed the height and width of these layers .
边栏推荐
- Multi whale capital: report on China's education intelligent hardware industry in 2022
- Projection point of point on line
- Quick placement of devices by module in Ad
- November 9, 2020 [wgs/gwas] - whole genome analysis (association analysis) process (Part 2)
- Directory of software
- Calculate Euler angle according to rotation matrix R yaw, pitch, roll source code
- Virtual machine VMware: due to vcruntime140 not found_ 1.dll, unable to continue code execution
- 想转行,却又不知道干什么?此文写给正在迷茫的你
- Log service management
- Firewall firewalld
猜你喜欢
Final review -php learning notes 4-php custom functions
2022 retail industry strategy: three strategies for consumer goods gold digging (in depth)
深度学习——卷积的滑动窗口实现
2021-10-29 [microbiology] a complete set of 16s/its analysis process based on qiime2 tool (Part I)
Final review -php learning notes 7-php and web page interaction
2022 Research Report on China's intelligent fiscal and tax Market: accurate positioning, integration and diversity
Tencent and Fudan University "2021-2022 yuan universe report" with 102 yuan universe collections
Graphic explanation pads update PCB design basic operation
Commands and permissions for directories and files
November 21, 2021 [reading notes] - bioinformatics and functional genomics (Chapter 5 advanced database search)
随机推荐
C language operators
Periodic planning work
Use of nested loops and output instances
Recurrence relation (difference equation) -- Hanoi problem
Final review -php learning notes 8-mysql database
深度学习——循环神经网络
2021-10-29 [microbiology] qiime2 sample pretreatment form automation script
Examen final - notes d'apprentissage PHP 5 - Tableau PHP
期末复习-PHP学习笔记11-PHP-PDO数据库抽象层.
STM32 infrared communication
HelloWorld
冰冰学习笔记:快速排序
C language implements sequential queue, circular queue and chain queue
Similarities and differences of differential signal, common mode signal and single ended signal (2022.2.14)
STM32 register on LED
Adjacency matrix representation of weighted undirected graph (implemented in C language)
Label the picture below the uniapp picture
Calculate Euler angle according to rotation matrix R yaw, pitch, roll source code
Lexicographic order -- full arrangement in bell sound
Network, network card and IP configuration