disable config info

This commit is contained in:
littletomatodonkey 2020-07-15 05:12:24 +00:00
parent a5eeb722a7
commit 78f9008d29
2 changed files with 4 additions and 2 deletions

View File

@ -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
} // namespace PaddleOCR

View File

@ -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
} // namespace PaddleOCR