参考:https://blog.csdn.net/hjxu2016/article/details/79806649
问题1.没有 “ceil_mode”.
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 149:14: Message type "caffe.PoolingParameter" has no field named "ceil_mode".
因为用的caffe版本太旧了,没有cieil_mode,这时参考caffe-DenseNet上的提问回答。
添加或者删除相应代码,然后重新编译
还可以参考:
https://blog.csdn.net/u012273127/article/details/78701161
https://blog.csdn.net/hjxu2016/article/details/79806649
问题2.loss 层有两个bottom作为输入
Check failed: ExactNumBottomBlobs() == bottom.size() (2 vs. 3) SoftmaxWithLoss Layer takes 2 bottom blob(s) as input.
不能同时又两个label作为bottom。所以要分成两个loss层
layer {
name: "loss"
type: "SoftmaxWithLoss"
bottom: "fc7"
bottom: "label"
top: "loss"
}
layer {
name: "1_loss"
type: "SoftmaxWithLoss"
bottom: "fc7"
bottom: "1_label"
top: "1_loss"
}