Caffe layer type: "Downsample"

版权声明:本文为博主原创文章,如需转载请附上博文链接 https://blog.csdn.net/wendygelin/article/details/88422712

将bottom[0]的图像的高和宽降采样到bottom[1]的大小。

可以用在pixcel to pixcel对比两个不同大小的图时,比如要测量图A和图B的欧氏距离作为Loss:

layer {
  name: "Downsample5"
  type: "Downsample"
  bottom: "imgA"
  bottom: "imgB"
  top: "imgAA"
}
layer {
  name: "EPE"
  type: "EuclideanLoss"
  bottom: "imgAA"
  bottom: "imgB"
  top: "EPE"
}

猜你喜欢

转载自blog.csdn.net/wendygelin/article/details/88422712