Skip to content

Commit

Permalink
Update preprocessor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sw005320 committed Jun 1, 2023
1 parent e6a628e commit f03539f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions espnet2/train/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ def _text_process(
text = self.text_cleaner(text)
tokens = self.tokenizer.text2tokens(text)
text_ints = self.token_id_converter.tokens2ids(tokens)
if len(text_ints) > 100:
if len(text_ints) > 500:
logging.warning(
"The length of the text output exceeds 100, "
"The length of the text output exceeds 500, "
"which may cause OOM on the GPU."
"Please ensure that the data processing is correct and verify it."
)
Expand Down

0 comments on commit f03539f

Please sign in to comment.