from local

This commit is contained in:
dohe0342 2023-01-03 12:58:07 +09:00
parent 90c1c96bf2
commit cd8facc9f2
2 changed files with 18 additions and 7 deletions

View File

@ -398,7 +398,7 @@ class LibriSpeechAsrDataModule:
@lru_cache()
def train_clean_100_cuts(self, option=None) -> CutSet:
logging.info("About to get train-clean-100 cuts")
if option is None
if option is None:
return load_manifest_lazy(
self.args.manifest_dir / f"librispeech_cuts_train-clean-100.jsonl"
)
@ -411,16 +411,27 @@ class LibriSpeechAsrDataModule:
@lru_cache()
def train_clean_360_cuts(self, option=None) -> CutSet:
logging.info("About to get train-clean-360 cuts")
return load_manifest_lazy(
self.args.manifest_dir / f"librispeech_cuts_train-clean-360_{option}.jsonl"
)
if option is None:
return load_manifest_lazy(
self.args.manifest_dir / f"librispeech_cuts_train-clean-360.jsonl"
)
else:
return load_manifest_lazy(
self.args.manifest_dir / f"librispeech_cuts_train-clean-360_{option}.jsonl"
)
@lru_cache()
def train_other_500_cuts(self, option=None) -> CutSet:
logging.info("About to get train-other-500 cuts")
return load_manifest_lazy(
self.args.manifest_dir / f"librispeech_cuts_train-other-500_{option}.jsonl"
)
if option is None:
return load_manifest_lazy(
self.args.manifest_dir / f"librispeech_cuts_train-other-500.jsonl"
)
else:
return load_manifest_lazy(
self.args.manifest_dir / f"librispeech_cuts_train-other-500_{option}.jsonl"
)
@lru_cache()
def train_all_shuf_cuts(self, option=None) -> CutSet: