0

私は、古いカフェのブランチで作業しています。入力層をスライスしてprototxtファイルを修正する必要があります。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形式で同等のでしょうか?また、どこのカフェのソースで私は自分自身でこれを見ることができますか?

答えて

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 
    } 
} 
関連する問題