from local

This commit is contained in:
dohe0342 2022-12-22 16:26:15 +09:00
parent fc187b5077
commit 896317d589
2 changed files with 6 additions and 2 deletions

View File

@ -985,9 +985,11 @@ def run(rank, world_size, args):
# an utterance duration distribution for your dataset to select
# the threshold
if c.duration < 1.0 or c.duration > 20.0:
'''
logging.warning(
f"Exclude cut with ID {c.id} from training. Duration: {c.duration}"
)
'''
return False
# In pruned RNN-T, we require that T >= S
@ -1000,6 +1002,7 @@ def run(rank, world_size, args):
tokens = sp.encode(c.supervisions[0].text, out_type=str)
if T < len(tokens):
'''
logging.warning(
f"Exclude cut with ID {c.id} from training. "
f"Number of frames (before subsampling): {c.num_frames}. "
@ -1008,6 +1011,7 @@ def run(rank, world_size, args):
f"Tokens: {tokens}. "
f"Number of tokens: {len(tokens)}"
)
'''
return False
return True