首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在windows Caffe上训练cifar10时出现libprotobuf错误

在windows Caffe上训练cifar10时出现libprotobuf错误
EN

Stack Overflow用户
提问于 2017-10-19 14:22:33
回答 1查看 600关注 0票数 2

大家好,我是DNN的新手,我正在尝试windows7上的Caffe。我已经成功地编译了Caffe,还制作了CIFAR10和mean.binaryproto文件的训练和测试级别的on文件。现在是开始训练和测试帮助的时候了,但是当我尝试训练的时候,我得到了错误,即使在谷歌了很长的time..Please帮助之后我也不能解决这些错误!这是我的版本信息: Anaconda2,CUDA7.5,Cudnn4,Visual Studio2013

代码语言:javascript
复制
C:\caffe-master\Build\x64\Release>caffe train -solver=cifar10_quick_solver.prototxt
[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 4:10: Invalid escape sequence in string literal.
[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 4:23: Invalid escape sequence in string literal.
[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 4:32: Invalid escape sequence in string literal.
[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 4:40: Invalid escape sequence in string literal.
[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 24:22: Invalid escape sequence in string literal.

[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 24:35: Invalid escape sequence in string literal.

[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 24:44: Invalid escape sequence in string literal.

[libprotobuf ERROR ..\src\google\protobuf\text_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: ***

代码语言:javascript
复制
C:\caffe-master\Build\x64\Release>upgrade_solver_proto_text c:\caffe-master\examples\cifar10\cifar10_full_solver.prototxt cifar10_full_new_solver.prototxt

[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 25:22: Invalid escape sequence in string literal.

[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 25:35: Invalid escape sequence in string literal.

[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text
-format caffe.SolverParameter: 25:44: Invalid escape sequence in string literal.

[libprotobuf ERROR ..\src\google\protobuf\text_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-master\examples\cifar10\cifar10_full_solver.prototxt
EN

回答 1

Stack Overflow用户

发布于 2017-10-20 16:05:00

在经历了所有的尝试和错误之后,我找到了答案。对于那些遭受同样的事情的人,请参考。

在求解器文件中,我已经将源文件和均值文件指示为绝对地址。但我犯的错误是,我写的地址是\不是/。即使我在cmd窗口中使用\键入命令,在prototxt中也不允许这样做。

所以你应该用/把地址写在prototxt文件中。即C:/caffe-master/examples/cifar10/cifar10_full_train.prototxt.

干杯。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46823828

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档