【问题标题】:using caffe training model but get a error使用 caffe 训练模型但出现错误
【发布时间】:2018-03-29 13:03:59
【问题描述】:
I0329 20:38:56.742496 13649 layer_factory.hpp:77] Creating layer data

[libprotobuf FATAL google/protobuf/stubs/common.cc:61] 这个程序需要 3.5.0 版本的 Protocol Buffer 运行时库,但安装的版本是 2.6.1。请更新您的图书馆。如果您自己编译程序,请确保您的标头来自与链接时库相同的协议缓冲区版本。 (“google/protobuf/descriptor.pb.cc”中的版本验证失败。) 在抛出 'google::protobuf::FatalException' 的实例后调用终止 what():这个程序需要3.5.0版本的Protocol Buffer运行库,但是安装的版本是2.6.1。请更新您的图书馆。如果您自己编译程序,请确保您的标头来自与链接时库相同的协议缓冲区版本。 (“google/protobuf/descriptor.pb.cc”中的版本验证失败。) * 在 1522327138(unix 时间)中止,如果您使用 GNU 日期,请尝试“date -d @1522327138” PC:@0x7f7ecf688428 gsignal SIGABRT (@0x3e900003551) 由 PID 13649 (TID 0x7f7ed1f81b00) 从 PID 13649 接收;堆栈跟踪:* @ 0x7f7ecf6884b0(未知) @ 0x7f7ecf688428 g信号 @ 0x7f7ecf68a02a 中止 @ 0x7f7ed049c84d __gnu_cxx::__verbose_terminate_handler() @ 0x7f7ed049a6b6(未知) @ 0x7f7ed049a701 std::terminate() @ 0x7f7ed049a919 __cxa_throw @ 0x7f7ed09e0647 google::protobuf::internal::LogMessage::Finish() @ 0x7f7ed09e087d google::protobuf::internal::VerifyVersion() @ 0x7f7df22b1967 protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFileDescriptorSetImpl() @ 0x7f7ed09e0f75 google::protobuf::GoogleOnceInitImpl() @ 0x7f7df22aba45 protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFileDescriptorSet() @ 0x7f7df22ac5d9 protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptorsImpl() @ 0x7f7ed09e0f75 google::protobuf::GoogleOnceInitImpl() @ 0x7f7df22acbf5 protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptors() @ 0x7f7ed1dfd6ba(未知) @ 0x7f7ed1dfd7cb(未知) @ 0x7f7ed1e028e2(未知) @ 0x7f7ed1dfd564(未知) @ 0x7f7ed1e01da9(未知) @ 0x7f7ec6aa9f09(未知) @ 0x7f7ed1dfd564(未知) @ 0x7f7ec6aaa571(未知) @ 0x7f7ec6aa9fa1 dlopen @ 0x7f7ecfd108dd _PyImport_GetDynLoadFunc @ 0x7f7ecfd7f54e _PyImport_LoadDynamicModule @ 0x7f7ecfd80390(未知) @ 0x7f7ecfd80658(未知) @ 0x7f7ecfd8176b PyImport_ImportModuleLevel @ 0x7f7ecfceb8b8(未知) @ 0x7f7ecfd44273 PyObject_Call @ 0x7f7ecfe1a487 PyEval_CallObjectWithKeywords enter image description here

【问题讨论】:

  • err - 可能想要清理它并给我们一个问题的指示。

标签: ubuntu gpu caffe pycaffe


【解决方案1】:

您的问题似乎是您使用了错误版本的 libprotobuf:

[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program
requires version 3.5.0 of the Protocol Buffer runtime library, but
the installed version is 2.6.1. Please update your library. If you
compiled the program yourself, make sure that your headers are from the
same version of Protocol Buffers as your link-time library. (Version 
verification failed in "google/protobuf/descriptor.pb.cc".)

(经过编辑使其不是一长行)

【讨论】:

  • 问题已经解决了,我使用pip uninstall protobuf 和pip install protobuf==2.6.1 。有时你需要添加sudo
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-04-20
  • 2021-05-18
  • 2017-04-20
  • 2019-09-26
  • 1970-01-01
  • 1970-01-01
  • 2015-11-28
相关资源
最近更新 更多