在使用上面的prototxt,已知报错
第一种版本的写法:
layer {
name: "LeNet"
input:"data"
input_dim:1
input_dim:1
input_dim:28
input_dim
}
Error parsing text-format caffe.NetParameter: 4:8: Message type "caffe.LayerParameter" has no field named "input".
第2中版本的写法:
layer {
name: "data"
type: "Input"
top: "data"
input_param { shape: { dim: 1 dim: 1 dim: 28 dim: 28 } }
}
Error parsing text-format caffe.NetParameter: 4:8: Message type "caffe.LayerParameter" has no field named "input_param ".
第3中版本的写法:不需要layer,使用下面的形式替代
name: "LeNet"
input:"data"
input_dim:1
input_dim:1
input_dim:28
input_dim:28
成功编译
弄了一晚上了,虽然也不知道什么原因,可能caffe版本的问题吧!!!
就因为这个已知报错,奔溃~~~~~~~