2017-10-19 10 views
2

にcifar10を訓練する際こんにちは、私はDNNに新たなんだと私は私が成功したカフェをコンパイルしてもCIFAR10とmean.binaryprotoファイルの電車やテストleveldbファイルを作っているWindows 7の上のカフェをしようとしています。今、列車を始動してCIFAR10をテストする時間ですが、私は列車に乗るときに、長時間のグーグルでも解決できないエラーを受け取ります。助けてください! ここに私のバージョン情報です:Anaconda2、クーダ7.5、Cudnn 4、Visual Studioの2013libprotobuf ERROR窓のカフェ

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: *** 

は、私も... upgrade_solver_proto_text、私はエラーを取得し、upgrade_net_proto_text、upgrade_net_proto_binary使用prototxtを更新する

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 

答えて

0
を試してみました

これらの試行錯誤の末、私は答えを得ました。 同じことに苦しむ人のために、参考にしてください。

ソルバーファイルで、私は、ソースファイルを記載しておりますし、絶対アドレスにファイルを意味します。 私が作った間違いは、私は\ not /でアドレスを書いたことです。 がさえ、私はprototxtで、\を使用してCMDウィンドウでコマンドを入力、それを許可していません。

だからあなたは/で、prototxtファイル内のアドレスを書き込む必要があります。 すなわちC:/caffe-master/examples/cifar10/cifar10_full_train.prototxt。

乾杯。

+0

かではなく、単一の '\\' '\\のwrite'することができます – Shai