0

我正在使用一些較早的caffe分支。現在我需要通過切片輸入圖層來修改原型文件。caffe中的舊原型文法

我知道,在新的語法,它看起來像這樣:

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格式相同呢?另外,我可以自己看這些咖啡來源?

回答

3

你應該看看$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 
    } 
}