1

I am using on Caffe C++ for a Deep learning application. Whenever I load the model file, it prints the contents of entire .protext file on to the console. The printing is happening at this point,

shared_ptr<Net<float> > net_;
net_.reset(new Net<float>(model_file, TEST));

How do I disable this? Any help is appreciated.

sujay
  • 9
  • 2

1 Answers1

0

You can control the verbosity (i.e., how much caffe prints to the log) of caffe using the environment variable GLOG_minloglevel. By default, caffe outputs all log messages of level "info" (1) and up. Try setting it to 2 (warnings) to disable most of the printouts.

~$ GLOGminloglevel=2 my_app_that_uses_caffe

See this thread for more information.

Shai
  • 111,146
  • 38
  • 238
  • 371