from local

This commit is contained in:
dohe0342 2023-03-14 16:32:52 +09:00
parent cdfe1d817c
commit 6fe6a12d04
2 changed files with 2 additions and 0 deletions

View File

@ -1591,6 +1591,7 @@ def run_adapter(rank, world_size, args, wb=None):
#train_cuts = librispeech.test_clean_user(option='big') #train_cuts = librispeech.test_clean_user(option='big')
train_cuts = librispeech.vox_cuts(option=params.spk_id) train_cuts = librispeech.vox_cuts(option=params.spk_id)
'''
with open(f'/workspace/icefall/egs/librispeech/ASR/{params.spk_id}.pl', 'r') as pl_texts: with open(f'/workspace/icefall/egs/librispeech/ASR/{params.spk_id}.pl', 'r') as pl_texts:
pl_texts = pl_texts.readlines() pl_texts = pl_texts.readlines()
@ -1600,6 +1601,7 @@ def run_adapter(rank, world_size, args, wb=None):
pl[text[0]] = ' '.join(text[1:]) pl[text[0]] = ' '.join(text[1:])
pl_texts = pl pl_texts = pl
'''
def remove_short_and_long_utt(c: Cut): def remove_short_and_long_utt(c: Cut):
return 1.0 <= c.duration <= 20.0 return 1.0 <= c.duration <= 20.0