From 79b9f89c940e622f7a7ad743dcd8f5bfee4aaae5 Mon Sep 17 00:00:00 2001 From: cvhub Date: Mon, 18 Sep 2023 14:07:22 +0800 Subject: [PATCH] fixed #60 bug --- anylabeling/services/auto_labeling/model_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anylabeling/services/auto_labeling/model_manager.py b/anylabeling/services/auto_labeling/model_manager.py index 0c9e8a26..988710ba 100644 --- a/anylabeling/services/auto_labeling/model_manager.py +++ b/anylabeling/services/auto_labeling/model_manager.py @@ -82,7 +82,7 @@ def load_model_configs(self): model_config = yaml.safe_load(f) model_config["config_file"] = config_file else: # Config file is in local file system - with open(config_file, "r") as f: + with open(config_file, "r", encoding="utf-8") as f: model_config = yaml.safe_load(f) model_config["config_file"] = os.path.normpath( os.path.abspath(config_file)