在使用上面的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版本的问题吧!!!
就因为这个已知报错,奔溃~~~~~~~
本文探讨了Caffe中Prototxt文件的输入层配置问题,通过三种不同版本的写法展示了常见的错误及其原因,并最终提供了一个正确的配置示例。
1589

被折叠的 条评论
为什么被折叠?



