From 78f9008d299c42efe967e02783ebf23034231d9d Mon Sep 17 00:00:00 2001 From: littletomatodonkey Date: Wed, 15 Jul 2020 05:12:24 +0000 Subject: [PATCH] disable config info --- deploy/cpp_infer/src/ocr_det.cpp | 3 ++- deploy/cpp_infer/src/ocr_rec.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy/cpp_infer/src/ocr_det.cpp b/deploy/cpp_infer/src/ocr_det.cpp index cddb0a8d..c87b653c 100644 --- a/deploy/cpp_infer/src/ocr_det.cpp +++ b/deploy/cpp_infer/src/ocr_det.cpp @@ -38,6 +38,7 @@ void DBDetector::LoadModel(const std::string &model_dir) { config.SwitchIrOptim(true); config.EnableMemoryOptim(); + config.DisableGlogInfo(); this->predictor_ = CreatePaddlePredictor(config); } @@ -106,4 +107,4 @@ void DBDetector::Run(cv::Mat &img, } } -} // namespace PaddleOCR \ No newline at end of file +} // namespace PaddleOCR diff --git a/deploy/cpp_infer/src/ocr_rec.cpp b/deploy/cpp_infer/src/ocr_rec.cpp index 446f9bc1..bbd7b9b2 100644 --- a/deploy/cpp_infer/src/ocr_rec.cpp +++ b/deploy/cpp_infer/src/ocr_rec.cpp @@ -127,6 +127,7 @@ void CRNNRecognizer::LoadModel(const std::string &model_dir) { config.SwitchIrOptim(true); config.EnableMemoryOptim(); + config.DisableGlogInfo(); this->predictor_ = CreatePaddlePredictor(config); } @@ -186,4 +187,4 @@ cv::Mat CRNNRecognizer::GetRotateCropImage(const cv::Mat &srcimage, } } -} // namespace PaddleOCR \ No newline at end of file +} // namespace PaddleOCR -- GitLab