Skip to content

Commit

Permalink
Merge pull request #1167 from Horizon1704/patch-1
Browse files Browse the repository at this point in the history
Add "encoding='utf-8'" for --config_file
  • Loading branch information
kohya-ss authored Mar 20, 2024
2 parents 5f6196e + 124ec45 commit 119cc99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3545,7 +3545,7 @@ def read_config_from_file(args: argparse.Namespace, parser: argparse.ArgumentPar
exit(1)

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)

# combine all sections into one
Expand Down

0 comments on commit 119cc99

Please sign in to comment.