当前位置:网站首页>Down sampling and up sampling
Down sampling and up sampling
2022-07-29 04:17:00 【ytusdc】
1、 What is the function of down sampling ? What are the usual ways ?
The lower sampling layer has two functions , One is to reduce the amount of calculation , Prevent over fitting ; The second is to increase the receptive field , So that the later convolution kernel can learn more global information .
There are two main methods of down sampling :
1、 use stride by 2 Pooled layer , Such as Max-pooling and Average-pooling, At present, we usually use Max-pooling, Because it is easy to calculate and can better preserve texture features ;
2、 use stride by 2 The convolution of layer , The process of down sampling is a process of information loss , The pool layer is not learnable , use stride by 2 Instead of learning convolution layer pooling Can get better effect , Of course, it also increases the amount of calculation .
2、 Principle and common methods of up sampling
In a convolutional neural network , Because the input image passes through the convolution neural network (CNN) After feature extraction , The size of the output tends to get smaller , Sometimes we need to restore the image to its original size for further calculation ( Such as image semantic segmentation ), The operation of mapping an image from a small resolution to a large resolution , It's called upsampling , There are generally three ways to implement it :
interpolation , Bilinear interpolation is generally used , Because the effect is the best , Although computationally more complex than other interpolation methods , But compared with convolution calculation, it is not worth mentioning , Other interpolation methods include nearest neighbor interpolation 、 Trilinear interpolation, etc ;
Transpose convolution or deconvolution (Transpose Conv), By inputting feature map Interval filling 0, Then carry out standard convolution calculation , Can make the output feature map The size of is larger than the input ;
Up-Pooling - Max Unpooling && Avg Unpooling --Max Unpooling, In symmetrical max pooling The index position of the maximum value of the position record , And then in unpooling During the phase, the corresponding value is placed at the original maximum position , Make up for the rest 0;
边栏推荐
- Labelme cannot open the picture
- Common components of solder pad (2021.4.6)
- [kvm] common commands
- When array is used as a function parameter, it is better to use the array size as a function parameter
- "Weilai Cup" 2022 Niuke summer multi school training camp 1 J serval and essay (heuristic merger)
- Pix2.4.8 from start to installation (2021.4.4)
- C语言:浅谈各种复杂的声明
- Design of environment detection system based on STM32 and Alibaba cloud
- 不会就坚持61天吧 最短的单词编码
- Codeforces round 810 (Div. 2) d. rain (segment tree difference)
猜你喜欢

你真的会写Restful API吗?

Class starts! See how smardaten decomposes complex business scenarios

不会就坚持66天吧 权重生成随机数

Beginner: array & String

通过js来实现一元二次方程的效果,输入a,b,c系数后可计算出x1和x2的值

11.备份交换机

Blood cases caused by < meta charset=UTF-8> -- Analysis of common character codes

全屋WiFi方案:Mesh路由器组网和AC+AP

Value transmission and address transmission of C language, pointer of pointer

Installation and use of stm32cubemx (5.3.0)
随机推荐
MPU6050
"Weilai Cup" 2022 Niuke summer multi school training camp 2H
How to solve the problem of store ranking?
Function pointer and callback function
Machine vision Series 1: Visual Studio 2019 dynamic link library DLL establishment
10.回退消息
数据集成这个地方的过滤条件该咋写,用的啥语法?sql语法处理bizdate可以不
C语言:结构体简单语法总结
“蔚来杯“2022牛客暑期多校训练营2 H
数据库SQL语句实现数据分解的函数查询
No, just stick to it for 64 days. Find the insertion location
Deep learning training strategy -- warming up the learning rate
Kotlin's list, map, set and other collection classes do not specify types
Mmdetection preliminary use
kotlin的List,Map,Set等集合类不指定类型
How to query the submission number of a version
The pit I walked through: the first ad Sketchpad
15.federation
Codeforces round 810 (Div. 2) d. rain (segment tree difference)
不会就坚持65天吧 只出现一次的数字