使用caffe中的python层进行分段错误

时间:2016-10-07 15:06:01

标签: python caffe

我正在尝试使用here所描述的python层。 但我得到了这个例外:

I1007 17:48:31.366592 30357 layer_factory.hpp:77] Creating layer loss
*** Aborted at 1475851711 (unix time) try "date -d @1475851711" if you are using GNU date ***
PC: @     0x7f32895f1156 (unknown)
*** SIGSEGV (@0x0) received by PID 30357 (TID 0x7f328b07fa40) from PID 0; stack trace: ***
@     0x7f328883ecb0 (unknown)
@     0x7f32895f1156 (unknown)
@     0x7f3289b43dfe (unknown)
@     0x7f32429d0d9c google::protobuf::MessageLite::ParseFromArray()
@     0x7f3242a1f652 google::protobuf::EncodedDescriptorDatabase::Add()
@     0x7f32429da012 google::protobuf::DescriptorPool::InternalAddGeneratedFile()
@     0x7f3242a2b33e google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto()
@     0x7f3242a5aa75 google::protobuf::StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto::StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto()
@     0x7f3242a56beb __static_initialization_and_destruction_0()
@     0x7f3242a56c00 _GLOBAL__sub_I_descriptor.pb.cc
@     0x7f328aeca10a (unknown)
@     0x7f328aeca1f3 (unknown)
@     0x7f328aecec30 (unknown)
@     0x7f328aec9fc4 (unknown)
@     0x7f328aece37b (unknown)
@     0x7f327d91b02b (unknown)
@     0x7f328aec9fc4 (unknown)
@     0x7f327d91b62d (unknown)
@     0x7f327d91b0c1 (unknown)
@     0x7f3288f412ae (unknown)
@     0x7f3288f09dae (unknown)
@     0x7f3288f88729 (unknown)
@     0x7f3288ebccbf (unknown)
@     0x7f3288f81d66 (unknown)
@     0x7f3288e47a3f (unknown)
@     0x7f3288f12d43 (unknown)
@     0x7f3288f8b577 (unknown)
@     0x7f3288f6dc13 (unknown)
@     0x7f3288f7154d (unknown)
@     0x7f3288f71682 (unknown)
@     0x7f3288f71a2c (unknown)
@     0x7f3288f88016 (unknown)
Segmentation fault (core dumped)

我正在使用Ubuntu 14.04,GPU caffe安装。 Python层和原型文件是here。 有人可以提出什么建议吗?我不知道我做错了什么。

1 个答案:

答案 0 :(得分:0)

根据我的经验,这是Caffe中最普遍的弱点之一:这个SegFault没有错误消息。我通常在没有正确连接数据层时得到这个。例如,我还没有启动数据服务器,或者格式严重不匹配。