mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
Add "encoding='utf-8'"
This commit is contained in:
@@ -3474,7 +3474,7 @@ def read_config_from_file(args: argparse.Namespace, parser: argparse.ArgumentPar
|
|||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
logger.info(f"Loading settings from {config_path}...")
|
logger.info(f"Loading settings from {config_path}...")
|
||||||
with open(config_path, "r") as f:
|
with open(config_path, "r", encoding='utf-8') as f:
|
||||||
config_dict = toml.load(f)
|
config_dict = toml.load(f)
|
||||||
|
|
||||||
# combine all sections into one
|
# combine all sections into one
|
||||||
|
|||||||
Reference in New Issue
Block a user