Skip to content

Commit d30cfd7

Browse files
authored
Merge pull request kohya-ss#1167 from Horizon1704/patch-1
Add "encoding='utf-8'" for --config_file
2 parents 7d5cbac + 943aaf9 commit d30cfd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/train_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3545,7 +3545,7 @@ def read_config_from_file(args: argparse.Namespace, parser: argparse.ArgumentPar
35453545
exit(1)
35463546

35473547
logger.info(f"Loading settings from {config_path}...")
3548-
with open(config_path, "r") as f:
3548+
with open(config_path, "r", encoding='utf-8') as f:
35493549
config_dict = toml.load(f)
35503550

35513551
# combine all sections into one

0 commit comments

Comments
 (0)