Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is log file in caffe-windows #3926

Closed
cheer37 opened this issue Apr 1, 2016 · 9 comments
Closed

Where is log file in caffe-windows #3926

cheer37 opened this issue Apr 1, 2016 · 9 comments
Labels

Comments

@cheer37
Copy link

cheer37 commented Apr 1, 2016

Training with caffe-windows, logs like below out periodically in console.
"Could not create logging file: File exists."
I guess this means log file exists already, so can't create it.
But where is the log file in default? and how can i redirect the path to save the log file?
Thanks.

@pavlejosipovic
Copy link

microsoft#21

@cheer37
Copy link
Author

cheer37 commented Apr 1, 2016

Thank you.
I found that log file, but that file contains only net information, not training course reflecting the loss and accuracy.
What's wrong?

@sasagalic-MSFT
Copy link

Log file in the %temp% folder should contain training progress as well. What happens when you add following lines of code at the beginning of cafe.cpp in caffe project:

  boost::filesystem::create_directory("log");
  ::google::SetLogDestination(0, "log/");
  ::google::SetLogFilenameExtension("Caffe.log.");

This should create a log directory in your working directory and force log file starting with "Caffe.log" to be written there.

@cheer37
Copy link
Author

cheer37 commented Apr 1, 2016

Thank you sasagalic-MSFT.
The instructions you offered work correctly and i found the reason why log.info file does not contain the training progress.
caffe training was failed due to out of memory at first, the log file was made from it.
when caffe trains successfully, caffe couldn't create the log file because there is already a log file made from broken training, so it had logged out "Could not create logging file: File exists."
I removed the broken log file and run the caffe again, so new log file happened and reflects all progress correctly now.
By the way, why this log.info file does not suffix the date and time information?
As i know, the log file should be suffixed date and time information.
That's why the log files from every caffe running conflicts.

@cheer37 cheer37 closed this as completed Apr 1, 2016
@cheer37 cheer37 reopened this Apr 1, 2016
@pavlejosipovic
Copy link

@cheer37 if this issue is resolved please close it.

@cheer37
Copy link
Author

cheer37 commented Apr 1, 2016

I am still not sure why date and time information is not suffixed to log file.
The log file name is like this - caffe.exe.WIN-AE2MD73M7I6.Administrator.log.INFO
But as i know, it should be like this - caffe.exe.WIN-AE2MD73M7I6.Administrator.log.INFO.20160329-084042.9160.
What's the reason?

@sasagalic-MSFT
Copy link

@cheer37 I have never seen the logs without data-time.pid suffix. That seems like issue with your system or glog, not the Caffe.

@cheer37
Copy link
Author

cheer37 commented Apr 1, 2016

ok, i will investigate more. Thanks.

@cheer37 cheer37 closed this as completed Apr 1, 2016
@CCHOT
Copy link

CCHOT commented Jun 6, 2016

@cheer37 hi cheer37, have you find out why date and time information is not suffixed to log file.I meet the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants