"...composable_kernel_onnx.git" did not exist on "81c942cd7e198b46f55be31451d51f27459d34ab"
Commit 78f9008d authored by littletomatodonkey's avatar littletomatodonkey
Browse files

disable config info

parent a5eeb722
...@@ -38,6 +38,7 @@ void DBDetector::LoadModel(const std::string &model_dir) { ...@@ -38,6 +38,7 @@ void DBDetector::LoadModel(const std::string &model_dir) {
config.SwitchIrOptim(true); config.SwitchIrOptim(true);
config.EnableMemoryOptim(); config.EnableMemoryOptim();
config.DisableGlogInfo();
this->predictor_ = CreatePaddlePredictor(config); this->predictor_ = CreatePaddlePredictor(config);
} }
...@@ -106,4 +107,4 @@ void DBDetector::Run(cv::Mat &img, ...@@ -106,4 +107,4 @@ void DBDetector::Run(cv::Mat &img,
} }
} }
} // namespace PaddleOCR } // namespace PaddleOCR
\ No newline at end of file
...@@ -127,6 +127,7 @@ void CRNNRecognizer::LoadModel(const std::string &model_dir) { ...@@ -127,6 +127,7 @@ void CRNNRecognizer::LoadModel(const std::string &model_dir) {
config.SwitchIrOptim(true); config.SwitchIrOptim(true);
config.EnableMemoryOptim(); config.EnableMemoryOptim();
config.DisableGlogInfo();
this->predictor_ = CreatePaddlePredictor(config); this->predictor_ = CreatePaddlePredictor(config);
} }
...@@ -186,4 +187,4 @@ cv::Mat CRNNRecognizer::GetRotateCropImage(const cv::Mat &srcimage, ...@@ -186,4 +187,4 @@ cv::Mat CRNNRecognizer::GetRotateCropImage(const cv::Mat &srcimage,
} }
} }
} // namespace PaddleOCR } // namespace PaddleOCR
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment