提交 5d072052 编写于 作者: J Jack

WARNING->ERROR

上级 83242886
...@@ -46,7 +46,7 @@ class ConfigPaser { ...@@ -46,7 +46,7 @@ class ConfigPaser {
const std::string& cfg = "infer_cfg.yml") { const std::string& cfg = "infer_cfg.yml") {
std::string cfg_file = model_dir + OS_PATH_SEP + cfg; std::string cfg_file = model_dir + OS_PATH_SEP + cfg;
if (access(cfg_file.c_str(), 0) < 0) { 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; << "whether infer_cfg.yml exists in model_dir" << std::endl;
return false; return false;
} }
......
...@@ -35,7 +35,7 @@ void ObjectDetector::LoadModel(const std::string& model_dir, ...@@ -35,7 +35,7 @@ void ObjectDetector::LoadModel(const std::string& model_dir,
std::string prog_file = model_dir + OS_PATH_SEP + "__model__"; std::string prog_file = model_dir + OS_PATH_SEP + "__model__";
std::string params_file = model_dir + OS_PATH_SEP + "__params__"; 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) { 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; success_init_ = false;
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册