Skip to content

Commit

Permalink
fix: declare the encoding in text-mode calls to open()
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Sep 20, 2024
1 parent db4f336 commit 30ce996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs2/cli/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def train(**kwargs):
lang2id, speaker2id = lookuptables_from_config(config)

# TODO: What about when we are fine-tuning? Do the bins in the Variance Adaptor not change? https://github.com/EveryVoiceTTS/FastSpeech2_lightning/issues/28
with open(config.preprocessing.save_dir / "stats.json") as f:
with open(config.preprocessing.save_dir / "stats.json", encoding="utf8") as f:
stats: Stats = Stats(**json.load(f))

model_kwargs = {"lang2id": lang2id, "speaker2id": speaker2id, "stats": stats}
Expand Down

0 comments on commit 30ce996

Please sign in to comment.