【问题标题】:Upscale layer with deconvolution or other具有反卷积或其他的高档层
【发布时间】:2019-10-20 00:02:42
【问题描述】:

我需要在 caffe 中使用一个高档层来“加倍”像素。 10x10 的图像变为 20x20,像素在水平和垂直维度上都“加倍”。我听说 deconv 层可能有助于步长为 2、无填充和 1x1 的内核大小,但这会在像素之间放置零。有人可以帮助我吗?谢谢

【问题讨论】:

    标签: image-processing machine-learning deep-learning computer-vision caffe


    【解决方案1】:

    我会尝试将内核大小设置为 2,并将 init(和固定?)权重设置为 1。

    layer {
      name: "upsample"
      type: "Deconvolution"
      bottom: x
      top: y
      convolution_param {
        num_output:  # same as number of input channels
        group:       # same as number of channels 
        bias_term: false # no need for bias
        kernel_size: 2
        stride: 2
        pad: 0
        weight_filler: { type: "constant" val: 1 }
      }
      param { lr_mult: 0 }
    }
    

    注意groupnum_output 应该相等,这样你就有相同的内核独立地作用于每个通道。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-26
      • 1970-01-01
      • 2018-04-07
      • 2015-04-25
      • 2017-03-24
      • 2017-01-12
      相关资源
      最近更新 更多