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)