py-faster-rcnn, error while comiling caffer, make runtest : Error parsing text-format caffe.SolverPa

463 views
Skip to first unread message

Chan Kim

unread,
Jan 26, 2016, 8:06:03 AM1/26/16
to Caffe Users
building py-faster-rcnn  (using anaconda2)
during caffe compile under caffer-fast-rcnn,
I ran make all, make test ok, but when I ran make runtest, I see this error.

[----------] 9 tests from AdaGradSolverTest/1, where TypeParam = caffe::CPUDevice<double>
[ RUN      ] AdaGradSolverTest/1.TestAdaGradLeastSquaresUpdateWithEverythingShare
libprotobuf ERROR google
/protobuf/text_format.cc:169] Error parsing text-format caffe.SolverParameter: 1:23: Expected identifier.
F0126
21:54:49.620090 17939 test_gradient_based_solver.cpp:55] Check failed: google::protobuf::TextFormat::ParseFromString(proto, &param)
*** Check failure stack trace: ***
   
@     0x7f0106880a5d  google::LogMessage::Fail()
   
@     0x7f0106884ef7  google::LogMessage::SendToLog()
   
@     0x7f0106882d59  google::LogMessage::Flush()
   
@     0x7f010688305d  google::LogMessageFatal::~LogMessageFatal()
   
@           0x5c9121  caffe::GradientBasedSolverTest<>::InitSolverFromProtoString()
   
@           0x5e85a2  caffe::GradientBasedSolverTest<>::RunLeastSquaresSolver()
   
@           0x5e931e  caffe::GradientBasedSolverTest<>::TestLeastSquaresUpdate()
   
@           0x5e9890  caffe::AdaGradSolverTest_TestAdaGradLeastSquaresUpdateWithEverythingShare_Test<>::TestBody()
   
@           0x865a0d  testing::internal::HandleExceptionsInMethodIfSupported<>()
   
@           0x857d11  testing::Test::Run()
   
@           0x857df7  testing::TestInfo::Run()
   
@           0x857f37  testing::TestCase::Run()
   
@           0x85ce3f  testing::internal::UnitTestImpl::RunAllTests()
   
@           0x8655bd  testing::internal::HandleExceptionsInMethodIfSupported<>()
   
@           0x85733a  testing::UnitTest::Run()
   
@           0x4eaeaf  main
   
@       0x3505e1ed5d  (unknown)
   
@           0x4eac09  (unknown)
make
: *** [runtest] Aborted (core dumped)


I have ~/anaconda2/lib in the LD_LIBRARY_PATH. and added ~/anaconda2/lib to /etc/ld.so.conf stuff.
I'm doing this on CentOS 6.7(final).
What can be wrong? I'm new to this caffe software. I just want to run the demo program (and analyze it later if possible..)
Any help will be appreciated.
Thanks.



Ahmed Ibrahim

unread,
Mar 7, 2016, 1:50:52 PM3/7/16
to Caffe Users
I have a similar problem on CENTOS 6.5 CPU only during make runtest I get
[ RUN      ] SGDSolverTest/0.TestLeastSquaresUpdateWithMomentumMultiIter

libprotobuf ERROR google
/protobuf/text_format.cc:169] Error parsing text-format caffe.SolverPa                                                                     rameter: 1:23: Expected identifier.

F0307
13:45:13.686787 64987 test_gradient_based_solver.cpp:54] Check failed: google::protobuf:                                                                     :TextFormat::ParseFromString(proto, &param)

*** Check failure stack trace: ***

   
@     0x7f2ba4b42140  google::LogMessage::Fail()
   
@     0x7f2ba4b42099  google::LogMessage::SendToLog()
   
@     0x7f2ba4b41a77  google::LogMessage::Flush()
   
@     0x7f2ba4b449ff  google::LogMessageFatal::~LogMessageFatal()
   
@           0x602259  caffe::GradientBasedSolverTest<>::InitSolverFromProtoString()
   
@           0x610438  caffe::GradientBasedSolverTest<>::RunLeastSquaresSolver()
   
@           0x61f25c  caffe::GradientBasedSolverTest<>::TestLeastSquaresUpdate()
   
@           0x61f51b  caffe::SGDSolverTest_TestLeastSquaresUpdateWithMomentumMultiIter_Tes                                                                     t<>::TestBody()
   
@           0x7043fd  testing::internal::HandleExceptionsInMethodIfSupported<>()
   
@           0x6f6701  testing::Test::Run()
   
@           0x6f67e7  testing::TestInfo::Run()
   
@           0x6f6927  testing::TestCase::Run()
   
@           0x6fb82f  testing::internal::UnitTestImpl::RunAllTests()
   
@           0x703fad  testing::internal::HandleExceptionsInMethodIfSupported<>()
   
@           0x6f5d2a  testing::UnitTest::Run()
   
@           0x4b4012  main
   
@       0x3c3a41ed5d  (unknown)
   
@           0x4b3eb9  (unknown)
Message has been deleted

liuxia...@gmail.com

unread,
Mar 21, 2016, 11:36:32 AM3/21/16
to Caffe Users
I have the same problem now! oh.

在 2016年1月26日星期二 UTC+8下午9:06:03,Chan Kim写道:

Ahmed Ibrahim

unread,
Mar 21, 2016, 11:47:11 AM3/21/16
to Caffe Users
check this

the "tricks" part of this article talks about a similar problem and how to solve it

Chan Kim

unread,
Apr 15, 2016, 11:52:11 AM4/15/16
to Caffe Users
Ibrahim, Thanks very much!
I was retrying to compile caffe today and met with the same problem and searched the internet and saw my same question your answer about protobuf version.
I yum removed old protobuf version and installed protobuf 2.6 and now caffe runs smoothly with GPU. Another fix I made was in Makefile.config where backslash was omitted in specifying line
-gencode arch=compute_30,code=sm_30 \
so compute_40 and 50 was not included in CUDA_ARCH which had caused device not found(?) error during 'make runtest'. Hope this could help anyone with the same problem. (I'm using CentOS6.7)
Reply all
Reply to author
Forward
0 new messages