From 4581b8ce86d8c7a4c5465c15b49d06dce19e0875 Mon Sep 17 00:00:00 2001 From: Jack <136876878@qq.com> Date: Thu, 6 Aug 2020 08:45:01 +0000 Subject: [PATCH] WARNING->ERROR --- deploy/cpp/include/config_parser.h | 2 +- deploy/cpp/src/object_detector.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/cpp/include/config_parser.h b/deploy/cpp/include/config_parser.h index 4817eb38d..75282b75c 100644 --- a/deploy/cpp/include/config_parser.h +++ b/deploy/cpp/include/config_parser.h @@ -46,7 +46,7 @@ class ConfigPaser { const std::string& cfg = "infer_cfg.yml") { std::string cfg_file = model_dir + OS_PATH_SEP + cfg; if (access(cfg_file.c_str(), 0) < 0) { - std::cerr << "[WARNING] Config yaml file is not found, please check " + std::cerr << "[ERROR] Config yaml file is not found, please check " << "whether infer_cfg.yml exists in model_dir" << std::endl; return false; } diff --git a/deploy/cpp/src/object_detector.cc b/deploy/cpp/src/object_detector.cc index be1b94105..a87ea46c0 100644 --- a/deploy/cpp/src/object_detector.cc +++ b/deploy/cpp/src/object_detector.cc @@ -35,7 +35,7 @@ void ObjectDetector::LoadModel(const std::string& model_dir, std::string prog_file = model_dir + OS_PATH_SEP + "__model__"; std::string params_file = model_dir + OS_PATH_SEP + "__params__"; if (access(prog_file.c_str(), 0) < 0 || access(params_file.c_str(), 0) < 0) { - std::cerr << "[WARNING] Model file or parameter file can't be found." << std::endl; + std::cerr << "[ERROR] Model file or parameter file can't be found." << std::endl; success_init_ = false; return; } -- GitLab