可视化资源

转置卷积与空洞卷积

转置卷积

将卷积过程”反过来”的运算,常用于上采样。同一参数下,标准卷积与转置卷积的对比:

标准卷积 s=1
标准卷积 · m = 3 · p = 0 · s = 1
来源:vdumoulin/conv_arithmetic(MIT)
标准卷积 s=2
标准卷积 · m = 3 · p = 0 · s = 2
来源:vdumoulin/conv_arithmetic(MIT)
转置卷积 s=1
转置卷积 · m = 3 · p = 0 · s = 1
来源:vdumoulin/conv_arithmetic(MIT)
转置卷积 s=2
转置卷积 · m = 3 · p = 0 · s = 2
来源:vdumoulin/conv_arithmetic(MIT)

空洞卷积

在卷积核元素之间插入”空洞”,扩大感受野而不增加参数量:

d=1 标准卷积
d = 1(等价于标准卷积)
来源:vdumoulin/conv_arithmetic(MIT)
d=2 空洞卷积
d = 2(感受野扩大)
来源:vdumoulin/conv_arithmetic(MIT)
m 卷积核大小 p 零填充(zero-padding) s 步长(stride) d 膨胀率(dilation)

图片修改自:Vincent Dumoulin, Francesco Visin — A guide to convolution arithmetic for deep learning