libprotobuf ERROR google/protobuf/text_format.cc:245

1928 ワード

root@ad2729f7fda4:/opt# caffe/build/tools/caffe train -solver /opt/solver.prototxt
libdc1394 error: Failed to initialize libdc1394
I1106 10:31:16.409225   114 caffe.cpp:178] Use CPU.
I1106 10:31:16.410399   114 solver.cpp:48] Initializing solver from parameters: 
test_iter: 100
test_interval: 100
base_lr: 1e-05
display: 100
max_iter: 50000
lr_policy: "fixed"
momentum: 0.9
snapshot: 2000
snapshot_prefix: "./snaps/simpleconv3_"
solver_mode: CPU
net: "./train.prototxt"
type: "Adam"
I1106 10:31:16.410617   114 solver.cpp:91] Creating training net from net file: ./train.prototxt
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 17:35: Message type "caffe.TransformationParameter" has no field named "contrast_brightness_adjustment".
F1106 10:31:16.410754   114 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: ./train.prototxt
*** Check failure stack trace: ***
    @     0x7fa0333f0daa  (unknown)
    @     0x7fa0333f0ce4  (unknown)
    @     0x7fa0333f06e6  (unknown)
    @     0x7fa0333f3687  (unknown)
    @     0x7fa03392e92e  caffe::ReadNetParamsFromTextFileOrDie()
    @     0x7fa03395f2eb  caffe::Solver<>::InitTrainNet()
    @     0x7fa0339604cc  caffe::Solver<>::Init()
    @     0x7fa0339607fa  caffe::Solver<>::Solver()
    @     0x7fa033a9f3b3  caffe::Creator_AdamSolver<>()
    @           0x410f46  caffe::SolverRegistry<>::CreateSolver()
    @           0x40a31b  train()
    @           0x40823c  main
    @     0x7fa032151f45  (unknown)
    @           0x408a0d  (unknown)
    @              (nil)  (unknown)
Aborted (core dumped)




参照先:https://www.cnblogs.com/muchong/p/6101663.html
問題原因:caffeバージョンが間違っています
基本的な考え方:need to update your build of Caffe and Run upgrade_net.cpp