【问题标题】:Old prototxt syntax in caffecaffe 中的旧 prototxt 语法
【发布时间】:2017-02-06 03:18:06
【问题描述】:

我正在使用一些较旧的 caffe 分支。现在我需要通过对输入层进行切片来修改prototxt文件。

我知道在新语法中它看起来像这样:

layer {
  name: "slice"
  type: "Slice"
  bottom: "labelAndMask"
  ## Example of layer with a shape N x 5 x Height x Width
  top: "label"
  top: "mask"
  slice_param {
    axis: 1
    slice_point: 1
  }
}

旧的 prototxt 格式的等价物是什么?另外,我可以自己在 caffe 资源中的哪个位置查找此内容?

【问题讨论】:

    标签: machine-learning neural-network deep-learning caffe protocol-buffers


    【解决方案1】:

    您应该查看$CAFFE_ROOT/src/caffe/proto/caffe.proto 的底部,您会看到V1LayerParameter 的定义。

    对于旧语法切片层:

    layers {
      type: SLICE # this is NOT a string, but an enum
      name: "slice"
      bottom: "labelAndMask"
      ## Example of layer with a shape N x 5 x Height x Width
      top: "label"
      top: "mask"
      slice_param {
        axis: 1
        slice_point: 1
      }
    }
    

    【讨论】:

      猜你喜欢
      • 2023-04-06
      • 2018-04-08
      • 2018-05-21
      • 1970-01-01
      • 2016-07-02
      • 2018-01-17
      • 2017-09-09
      • 1970-01-01
      • 2020-08-16
      相关资源
      最近更新 更多