from local

This commit is contained in:
dohe0342 2023-01-09 15:00:56 +09:00
parent 3aea4a9af1
commit 8f17940b4f
2 changed files with 12 additions and 1 deletions

View File

@ -395,6 +395,18 @@ class LibriSpeechAsrDataModule:
num_workers=self.args.num_workers,
)
return test_dl
@lru_cache()
def train_clean_10_cuts(self, option=None) -> CutSet:
logging.info("About to get train-clean-10 cuts")
if option is None:
return load_manifest_lazy(
self.args.manifest_dir / f"librispeech_cuts_train-clean-100.jsonl"
)
else:
return load_manifest_lazy(
self.args.manifest_dir / f"librispeech_cuts_train-clean-10_{option}.jsonl"
)
@lru_cache()
def train_clean_100_cuts(self, option=None) -> CutSet:
@ -408,7 +420,6 @@ class LibriSpeechAsrDataModule:
self.args.manifest_dir / f"librispeech_cuts_train-clean-100_{option}.jsonl"
)
@lru_cache()
def train_clean_360_cuts(self, option=None) -> CutSet:
logging.info("About to get train-clean-360 cuts")