diff --git a/openbr/plugins/classification/caffe.cpp b/openbr/plugins/classification/caffe.cpp index 183b9a5..e11bda5 100644 --- a/openbr/plugins/classification/caffe.cpp +++ b/openbr/plugins/classification/caffe.cpp @@ -44,9 +44,9 @@ private: Caffe::set_mode(Caffe::CPU); } + FLAGS_minloglevel = google::ERROR; // Disable Caffe's verbose output before loading any models CaffeNet *net = new CaffeNet(model, caffe::TEST); net->CopyTrainedLayersFromBinaryProto(weights.toStdString()); - FLAGS_minloglevel = google::ERROR; // Disable Caffe's verbose output after loading the first model return net; } };