diff --git a/openbr/plugins/classification/caffe.cpp b/openbr/plugins/classification/caffe.cpp index 2c5ec63..183b9a5 100644 --- a/openbr/plugins/classification/caffe.cpp +++ b/openbr/plugins/classification/caffe.cpp @@ -45,7 +45,7 @@ private: } CaffeNet *net = new CaffeNet(model, caffe::TEST); - net->CopyTrainedLayersFrom(weights.toStdString()); + net->CopyTrainedLayersFromBinaryProto(weights.toStdString()); FLAGS_minloglevel = google::ERROR; // Disable Caffe's verbose output after loading the first model return net; }