Skip to content

Commit

Permalink
minor fix of vits/tokenizer.py (#1504)
Browse files Browse the repository at this point in the history
* minor fix of vits/tokenizer.py
  • Loading branch information
yaozengwei authored Feb 19, 2024
1 parent db4d66c commit b3e2044
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions egs/ljspeech/TTS/vits/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def texts_to_token_ids(self, texts: List[str], intersperse_blank: bool = True):
if intersperse_blank:
token_ids = intersperse(token_ids, self.blank_id)

token_ids_list.append(token_ids)
token_ids_list.append(token_ids)

return token_ids_list

Expand Down Expand Up @@ -103,6 +103,7 @@ def tokens_to_token_ids(

if intersperse_blank:
token_ids = intersperse(token_ids, self.blank_id)
token_ids_list.append(token_ids)

token_ids_list.append(token_ids)

return token_ids_list

0 comments on commit b3e2044

Please sign in to comment.