Skip to content

Commit

Permalink
fix: gbk encoding file reading issus in OOD data
Browse files Browse the repository at this point in the history
  • Loading branch information
phields authored Dec 7, 2023
1 parent d05a463 commit 12da0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meldataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self,
self.max_mel_length = 192

self.min_length = min_length
with open(OOD_data, 'r') as f:
with open(OOD_data, 'r', encoding='utf-8') as f:
tl = f.readlines()
idx = 1 if '.wav' in tl[0].split('|')[0] else 0
self.ptexts = [t.split('|')[idx] for t in tl]
Expand Down

0 comments on commit 12da0ce

Please sign in to comment.