0

저는 카페의 더 오래된 지점에서 일하고 있습니다. 이제 입력 레이어를 슬라이스하여 prototxt 파일을 수정해야합니다.카페에서 이전 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 
    } 
} 
관련 문제