diff --git a/deploy/cpp/include/config_parser.h b/deploy/cpp/include/config_parser.h index 4817eb38d3bcdb1397c7d6c145988787383d7029..75282b75c79d8f78cff977f220d56b3e25818bb4 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 be1b9410564f49566d4693bfec8e049595e6ef38..a87ea46c0e66ca3b783e5b9e572a2079b6238578 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; }