machine-learning - caffe 中旧的 prototxt 语法

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

我正在与一些较旧的咖啡分支合作。现在我需要通过切片输入层来修改 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源中的哪里自己查找这个?

最佳答案

您应该查看 $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
  }
}

关于machine-learning - caffe 中旧的 prototxt 语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39742486/

相关文章:

opencv - OpenCV 中的正常贝叶斯实现

python - Pandas (Python) - 根据条件从另一个数据框更新数据框的列

c# - Accord.Net - LibLinear 上的 CacheSize

matlab - 我的 Hopfield 神经网络解决旅行商问题有什么问题?

neural-network - 如何解释生成对抗网络中判别器的损失和生成器的损失?

python - 获取具有多个不明确元素的数组的真值以进行蛋白变换

tensorflow - 如何为 Tensorflow Hub 模块的特定输入获取所有层的激活?

machine-learning - 训练算法以实现更好的图像识别

python - 制作 Keras 模型时将数据拆分为训练、测试和评估

github - 如何微调微调 GitHub Copilot?