我正在与一些较旧的咖啡分支合作。现在我需要通过切片输入层来修改 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/