微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

libprotobuf在Windows Caffe上训练cifar10时出错

嗨,我是新来的DNN,我正在尝试Caffe在Windows 7上。我已经成功地编译Caffe,并且还做了CIFAR10和mean.binaryproto文件的列车和testingleveldb文件。 现在是开始训练和testingCIFAR10的时候了,但是当我尝试训练时,即使经过长时间的Googlesearch,我也会得到我无法解决错误。请帮助! 这里是我的版本信息:Anaconda2,Cuda 7.5,Cudnn 4,Visual Studio 2013

C:caffe-masterBuildx64Release>caffe train -solver=cifar10_quick_solver.prototxt [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 4:10: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 4:23: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 4:32: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 4:40: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 24:22: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 24:35: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 24:44: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 24:52: Invalid escape sequence in string literal. F1019 14:25:21.171140 5692 upgrade_proto.cpp:1063] Check Failed: ReadProtoFromT extFile(param_file,param) Failed to parse SolverParameter file: cifar10_quick_solver.prototxt *** Check failure stack trace: ***

我也尝试更新prototxt使用upgrade_net_proto_binary,upgrade_net_proto_text,upgrade_solver_proto_text,我得到错误

C:caffe-masterBuildx64Release>upgrade_solver_proto_text c:caffe-masterexamplescifar10cifar10_full_solver.prototxt cifar10_full_new_solver.prototxt [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 25:22: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 25:35: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 25:44: Invalid escape sequence in string literal. [libprotobuf ERROR ..srcgoogleprotobuftext_format.cc:274] Error parsing text -format caffe.solverParameter: 25:52: Invalid escape sequence in string literal. E1018 20:49:33.715873 5896 upgrade_solver_proto_text.cpp:30] Failed to parse in put text file as SolverParameter: c:caffe-masterexamplescifar10cifar10_full_solver.prototxt

在所有这些试验和错误之后,我得到了答案。 对于那些遭受同样的事情,请参阅。

在解算器文件中,我已经将源文件和平均文件指示为绝对地址。 但是我犯的错误是,我用 not /写了地址。 即使我使用在cmd窗口中键入命令,在prototxt中,它不允许它。

所以你应该用/来编写原型文件中的地址。 即C:/caffe-master/examples/cifar10/cifar10_full_train.prototxt。

干杯。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐