180703 一个例子理解转置卷积Deconvolution or Transposed Convolution

来源:Up-sampling with Transposed Convolution

为什么上采样?

  • 因为有时候我们需要低分辨率→高分辨率
    这里写图片描述

为什么需要转置卷积?

  • 相比于紧邻上采样/双样条采样/三次样条采样等手工选择采样方法,我们需要一种能够自动优化的上采样方法。而转置卷积已经在DCGAN、FCN等中得到了较好的应用效果。

卷积操作(多对一)

  • 输入与卷积核进行卷积操作得到卷积输出
    这里写图片描述

这里写图片描述

反向过程(一对多)

这里写图片描述

卷积矩阵重构

  • 原始卷积矩阵
    这里写图片描述
  • 重构卷积矩阵
    这里写图片描述
  • 重构输入
    这里写图片描述
  • 重构卷积操作过程
    这里写图片描述

  • 重构卷积输出(结果与之前卷积操作结果相同)
    这里写图片描述

  • 转置卷积逆向操作,得到原始输入(划重点)

这里写图片描述

  • 总结

The transposed convolution operation forms the same connectivity as the normal convolution but in the backward direction.

We can use it to conduct up-sampling. Moreover, the weights in the transposed convolution are learnable. So we do not need a predefined interpolation method.

Even though it is called the transposed convolution, it does not mean that we take some existing convolution matrix and use the transposed version. The main point is that the association between the input and the output is handled in the backward fashion compared with a standard convolution matrix (one-to-many rather than many-to-one association).

As such, the transposed convolution is not a convolution. But we can emulate the transposed convolution using a convolution. We up-sample the input by adding zeros between the values in the input matrix in a way that the direct convolution produces the same effect as the transposed convolution. You may find some article explains the transposed convolution in this way. However, it is less efficient due to the need to add zeros to up-sample the input before the convolution.

One caution: the transposed convolution is the cause of the checkerboard artifacts in generated images. This article Deconvolution and Checkerboard Artifacts recommends an up-sampling operation (i.e., an interpolation method) followed by a convolution operation to reduce such issues. If your main objective is to generate images without such artifacts, it is worth reading the paper to find out more.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

GuokLiu

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值