Open NHZlX opened 7 years ago
when i run build/tools/caffe.bin test
it shows
E0626 15:05:56.031667 29142 caffe.cpp:81] Available caffe actions:
*** Aborted at 1498460756 (unix time) try "date -d @1498460756" if you are using GNU date ***
PC: @ 0x7feb8e1203d0 (unknown)
*** SIGSEGV (@0x20) received by PID 29142 (TID 0x7feb8b8c0b60) from PID 32; stack trace: ***
@ 0x318b20f500 (unknown)
@ 0x7feb8e1203d0 (unknown)
@ 0x409f45 GetBrewFunction()
@ 0x409a45 main
@ 0x318ae1ecdd (unknown)
@ 0x409869 (unknown)
Segmentation fault
the normal log should be
F0626 15:01:36.412426 31985 caffe.cpp:267] Check failed: FLAGS_model.size() > 0 (0 vs. 0) Need a model definition to score.
*** Check failure stack trace: ***
@ 0x7f391c25ba3d google::LogMessage::Fail()
@ 0x7f391c25fed7 google::LogMessage::SendToLog()
@ 0x7f391c25dd39 google::LogMessage::Flush()
@ 0x7f391c25e03d google::LogMessageFatal::~LogMessageFatal()
@ 0x409606 test()
@ 0x4073bc main
@ 0x318ae1ecdd (unknown)
@ 0x407c2d (unknown)
Aborted
It looks like that the test function is not registered.
Sorry about late reply. The error is generated from gflags and probably the command line arguments are not parsed correctly. What's the version of gflags you're using? Can you check the gflags you are linked to and the gflags library used at run-time are the same version?
It would be also helpful to know if you're getting the same error if you use the Caffe main branch.
I tested other versions of Caffe, and these versions link the same gflags dynamic library, they have no problem.
After build the skimcaffe, and i run
build/tools/caffe.bin test -model models/bvlc_googlenet/test_direct_sconv.prototxt -weights models/bvlc_googlenet/gesl_0.686639_0.001_0.00005_ft_0.001_0.0001.caffemodel
it shows
I check the caffe.cpp, can not find what's wrong with it.