当前位置:网站首页>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;
边栏推荐
- 通过js来实现一元二次方程的效果,输入a,b,c系数后可计算出x1和x2的值
- Install the laser of ROS_ scan_ Problems encountered in match library (I)
- What the hell is this error? It doesn't affect the execution result, but it always reports errors when executing SQL... Connecting maxcomputer uses
- MPU6050
- Semantic segmentation correlation
- 索引的最左前缀原理
- 不会就坚持66天吧 权重生成随机数
- 数据集成这个地方的过滤条件该咋写,用的啥语法?sql语法处理bizdate可以不
- 10.回退消息
- 你真的会写Restful API吗?
猜你喜欢
Sequence list and linked list
Problems encountered in vscode connection SSH
Lua language (stm32+2g/4g module) and C language (stm32+esp8266) methods of extracting relevant data from strings - collation
12.优先级队列和惰性队列
Machine vision Series 2: vs DLL debugging
Mmdetection preliminary use
编译与链接
不会就坚持69天吧 合并区间
15.federation
为什么opengauss启动的时候这么多的unknown?
随机推荐
The return value of the function is the attention of the pointer, the local variables inside the static limit sub function, and how the pointer to the array represents the array elements
不会就坚持59天吧 替换单词
15.federation
Pat a1069/b1019 the black hole of numbers
Not for 58 days. Implement prefix tree
The data source is SQL server. I want to configure the incremental data of the last two days of the date field updatedate to add
RMAN do not mark expired backups
It won't last for 70 days. The k-largest number in the array
C language force buckle question 61 of the rotating list. Double ended queue and construction of circular linked list
Problems encountered in vscode connection SSH
Svg -- loading animation
顺序表和链表
Mmdetection preliminary use
不会就坚持61天吧 最短的单词编码
Record of problems encountered in ROS learning
10. Fallback message
Not for 60 days, magical dictionary
Database SQL statement realizes function query of data decomposition
15.federation
It won't last for 65 days. It only appears once