mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
292f5aca42
commit
29141e0f57
Binary file not shown.
@ -1579,13 +1579,20 @@ def run_adapter(rank, world_size, args, wb=None):
|
||||
train_cuts += librispeech.train_other_500_cuts(option=params.gender)
|
||||
'''
|
||||
|
||||
train_cuts = librispeech.train_clean_10_cuts(option='male')
|
||||
#train_cuts = librispeech.test_clean_user(option='big')
|
||||
#train_cuts = librispeech.train_clean_10_cuts(option='male')
|
||||
train_cuts = librispeech.test_clean_user(option='big')
|
||||
|
||||
def remove_short_and_long_utt(c: Cut):
|
||||
return 1.0 <= c.duration <= 20.0
|
||||
|
||||
train_cuts = train_cuts.filter(remove_short_and_long_utt)
|
||||
|
||||
sampler_state_dict = None
|
||||
|
||||
train_dl = librispeech.train_dataloaders(
|
||||
train_cuts, sampler_state_dict=sampler_state_dict
|
||||
)
|
||||
|
||||
print('\n'*5)
|
||||
print('-'*30)
|
||||
print(train_cuts)
|
||||
@ -1593,12 +1600,6 @@ def run_adapter(rank, world_size, args, wb=None):
|
||||
print('\n'*5)
|
||||
exit()
|
||||
|
||||
sampler_state_dict = None
|
||||
|
||||
train_dl = librispeech.train_dataloaders(
|
||||
train_cuts, sampler_state_dict=sampler_state_dict
|
||||
)
|
||||
|
||||
valid_cuts = librispeech.dev_clean_cuts(option=params.gender)
|
||||
valid_cuts += librispeech.dev_other_cuts(option=params.gender)
|
||||
valid_dl = librispeech.valid_dataloaders(valid_cuts)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user