hi,
Analyzing the caffe code is taking me so long and I read somewhere they suggest using gdb for that.
I'm analyzing pycaffe and I'm just using prints while running it.
Is there a method to use gdb for py-caffe too? (I know how to use gdb, using ddd and have some experience)
and just in case I would appreciate it if somebody tells me now to use gdb to analyze caffe (for using native caffe interface).
I tried using caffe native commands to execute image classification example. (which I used to do with just tools/demo.py)
I triedcaffe test -gpu 0 -model models/VGG16/faster_rcnn_alt_opt/faster_rcnn_test.pt -weights data/faster_rcnn_models/VGG16_faster_rcnn_final.caffemodelbut it gives me.....I0609 17:23:09.633932 4312 net.cpp:488] rpn_cls_prob_reshape <- rpn_cls_prob
I0609 17:23:09.633940 4312 net.cpp:444] rpn_cls_prob_reshape -> rpn_cls_prob_reshape
I0609 17:23:09.633950 4312 net.cpp:166] Setting up rpn_cls_prob_reshape
I0609 17:23:09.633957 4312 net.cpp:174] Top shape: 1 18 14 14 (3528)
I0609 17:23:09.633963 4312 layer_factory.hpp:76] Creating layer proposal
ImportError: No module named rpn.proposal_layer
at the end.
On Thursday, June 9, 2016 at 4:02:53 PM UTC+9, Chan Kim wrote:
hi,
Analyzing the caffe code is taking me so long and I read somewhere they suggest using gdb for that.
I'm analyzing pycaffe and I'm just using prints while running it.
Is there a method to use gdb for py-caffe too? (I know how to use gdb, using ddd and have some experience)
and just in case I would appreciate it if somebody tells me now to use gdb to analyze caffe (for using native caffe interface).
I tried using caffe native commands to execute image classification example. (which I used to do with just tools/demo.py)
I guessed the arguments and get response below. If it runs ok, I could try later withgdb "command"What is the wrong part of my caffe test command below?
ck...@stph45:~/Neuro/py-faster-rcnn] caffe test -model models/VGG16/faster_rcnn_alt_opt/faster_rcnn_test.pt -weights data/faster_rcnn_models/VGG16_faster_rcnn_final.caffemodel -gpu data/demo/000456.jpg
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >'
what(): bad lexical cast: source type value could not be interpreted as target
*** Aborted at 1465455359 (unix time) try "date -d @1465455359" if you are using GNU date ***
PC: @ 0x3505e32625 (unknown)
*** SIGABRT (@0x3e800000f04) received by PID 3844 (TID 0x7f05ab363720) from PID 3844; stack trace: ***
@ 0x350620f790 (unknown)
@ 0x3505e32625 (unknown)
@ 0x3505e33e05 (unknown)
@ 0x350cabea7d (unknown)
@ 0x350cabcbd6 (unknown)
@ 0x350cabcc03 (unknown)
@ 0x350cabcd22 (unknown)
@ 0x40f141 boost::throw_exception<>()
@ 0x40f3d2 boost::detail::lexical_cast<>()
@ 0x408be2 get_gpus()
@ 0x409576 test()
@ 0x4092c6 main
@ 0x3505e1ed5d (unknown)
@ 0x4081c9 (unknown)
Abort (core dumped)
Thanks!
--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/06dc2bfe-09a1-475c-9c37-1e9b70358848%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I found the solution months ago and I put the answer on stackoverflow.
See http://stackoverflow.com/questions/38898459/debugging-python-and-c-exposed-by-boost-together
On Thursday, June 9, 2016 at 4:02:53 PM UTC+9, Chan Kim wrote:
hi,
Analyzing the caffe code is taking me so long and I read somewhere they suggest using gdb for that.
I'm analyzing pycaffe and I'm just using prints while running it.
Is there a method to use gdb for py-caffe too? (I know how to use gdb, using ddd and have some experience)
and just in case I would appreciate it if somebody tells me now to use gdb to analyze caffe (for using native caffe interface).
I tried using caffe native commands to execute image classification example. (which I used to do with just tools/demo.py)
I guessed the arguments and get response below. If it runs ok, I could try later withgdb "command"What is the wrong part of my caffe test command below?
ck...@stph45:~/Neuro/py-faster-rcnn] caffe test -model models/VGG16/faster_rcnn_alt_opt/faster_rcnn_test.pt -weights data/faster_rcnn_models/VGG16_faster_rcnn_final.caffemodel -gpu data/demo/000456.jpg
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >'
what(): bad lexical cast: source type value could not be interpreted as target
*** Aborted at 1465455359 (unix time) try "date -d @1465455359" if you are using GNU date ***
PC: @ 0x3505e32625 (unknown)
*** SIGABRT (@0x3e800000f04) received by PID 3844 (TID 0x7f05ab363720) from PID 3844; stack trace: ***
@ 0x350620f790 (unknown)
@ 0x3505e32625 (unknown)
@ 0x3505e33e05 (unknown)
@ 0x350cabea7d (unknown)
@ 0x350cabcbd6 (unknown)
@ 0x350cabcc03 (unknown)
@ 0x350cabcd22 (unknown)
@ 0x40f141 boost::throw_exception<>()
@ 0x40f3d2 boost::detail::lexical_cast<>()
@ 0x408be2 get_gpus()
@ 0x409576 test()
@ 0x4092c6 main
@ 0x3505e1ed5d (unknown)
@ 0x4081c9 (unknown)
Abort (core dumped)
Thanks!