No log files created when running a solver in pycaffe

679 views
Skip to first unread message

Vivi N

unread,
Sep 15, 2015, 7:35:26 AM9/15/15
to Caffe Users
Hello.
I've been using caffe on its python interface for a while now but I haven't been able to get ahold of the log files that caffe creates, to parse them and plot the loss curve for example.
I've looked everywhere, including the /tmp/ directory, but no log files were created.

Is there something I have to do to force pycaffe to create these log files when the solve() function is called?

Brian Chu

unread,
Nov 2, 2015, 11:08:10 PM11/2/15
to Caffe Users
I'm also wondering about this!

Jan C Peters

unread,
Nov 3, 2015, 3:28:50 AM11/3/15
to Caffe Users
I haven't done the solving itself in pycaffe before, but when I load a caffemodel with caffe.Net(...) I get all the log messages which I also get by the caffe executable (the setup and scaffolding messages) on stdout (or maybe stderr). So I assume the solver's output also goes to stdout or stderr. You could simple redirect those to a file in python by setting sys.stdout and/or sys.stderr to a file descriptor of a text file of your choosing (have done that myself successfully).

Jan
Reply all
Reply to author
Forward
0 new messages