I want to redirect Caffe's output from the terminal to a file (say output.txt
). I'm using the command
caffe train -solver=expt/solver.prototxt > output.txt`
However, the >
operator doesn't seem to be working and Caffe spits out all the output on to the terminal. I'm using Ubuntu 14.04.
Can't seem to figure out why >
is not working with Caffe. Any help is much appreciated. Thank you.
You need to redierect stderr as well
caffe train ... > output.txt 2>&1
The redirection operator >
redirects only stdout, caffe is using sterr as well. You might want to set GLOG_logtosterr=1
as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With