我尝试在/ examples / pycaffe中运行linreg示例。
我为它添加了一个solver.prototxt。
然后我尝试训练它,但是我得到了一个错误。
你能帮助我吗?
我添加的solver.prototxt:
net: "${caffe_dir}/examples/pycaffe/linreg.prototxt"
display: 40
base_lr: 0.1
lr_policy: "step"
stepsize: 320000
gamma: 0.96
max_iter: 600000
momentum: 0.9
weight_decay: 0.0001
snapshot: 40000
snapshot_prefix: "test"
solver_mode: CPU
错误信息为:
I0815 19:23:26.105624 7281 layer_factory.hpp:77] Creating layer loss
*** Aborted at 1502796212 (unix time) try "date -d @1502796212" if you are using GNU date ***
PC: @ 0x7f6713ded458 (unknown)
*** SIGSEGV (@0x0) received by PID 7281 (TID 0x7f671559aa40) from PID 0; stack trace: ***
@ 0x7f6712fd9cb0 (unknown)
@ 0x7f6713ded458 (unknown)
@ 0x7f66ce27bd40 google::protobuf::python::message_meta::AddFieldNumberToClass()
@ 0x7f66ce27c1e6 google::protobuf::python::message_meta::New()
@ 0x7f6713699953 (unknown)
@ 0x7f67136970a3 (unknown)
@ 0x7f67136be2d6 (unknown)
@ 0x7f67136c2c3d (unknown)
@ 0x7f67136c2f22 (unknown)
@ 0x7f67136c377c (unknown)
@ 0x7f6713726ef6 (unknown)
@ 0x7f6713727609 (unknown)
@ 0x7f671362747f (unknown)
@ 0x7f6713720a46 (unknown)
@ 0x7f67136f485f (unknown)
@ 0x7f67136970a3 (unknown)
@ 0x7f671372a5f7 (unknown)
@ 0x7f67136be6d3 (unknown)
@ 0x7f67136c2c3d (unknown)
@ 0x7f67136c2f22 (unknown)
@ 0x7f67136c377c (unknown)
@ 0x7f6713726ef6 (unknown)
@ 0x7f6713727609 (unknown)
@ 0x7f671362747f (unknown)
@ 0x7f6713720a46 (unknown)
@ 0x7f67136f485f (unknown)
@ 0x7f67136970a3 (unknown)
@ 0x7f671372a5f7 (unknown)
@ 0x7f67136be6d3 (unknown)
@ 0x7f67136c2c3d (unknown)
@ 0x7f67136c2f22 (unknown)
@ 0x7f67136c377c (unknown)
Segmentation fault (core dumped)
这句话毫无意义。这只是一个尾巴。
这句话毫无意义。这只是一个尾巴
这句话毫无意义。这只是一个尾巴
这句话毫无意义。这只是一个尾巴
这句话毫无意义。这只是一个尾巴
这句话毫无意义。这只是一个尾巴。
答案 0 :(得分:1)
解决了!
那是因为python-protobuf的版本是3.2.0,但sudo apt-get install libprotobuf-dev
安装的protobuf是2.5.0版本。
所以,让两个版本相同可以解决这个问题。