我有兴趣再现zf net的prototxt文件中的步骤。我不确定的部分是softmax层。 rpn_cls_score在这里用尺寸(1,18,h,w)创建:
层{ 名称: ”…
如 SofmaxParameter 记录在案 caffe.proto ,它有一个参数轴,默认设置为1:
SofmaxParameter
// The axis along which to perform the softmax -- may be negative to index // from the end (e.g., -1 for the last axis). // Any other axes will be evaluated as independent softmaxes. optional int32 axis = 2 [default = 1];
因此,您对C ++实现的理解是正确的,并且关于softmax如何使用N>处理ND输入的问题。 1是分别评估每个轴。 至于更快的RCNN,如果你只对前景框感兴趣,你可以拆分rpn_cls_score blob并仅使用它的后半部分(即训练你的网络集之后) num_output: 9 # instead of 18 ,或在训练使用期间 Slice 层只采取下半年)。注意相应地更改caffemodel,以防你像往常一样训练并改变 num_output 训练结束后。
num_output: 9 # instead of 18
Slice
num_output