from local

This commit is contained in:
dohe0342 2022-12-28 10:34:07 +09:00
parent 7eeff6f8c1
commit 1c06deb92d
2 changed files with 8 additions and 3 deletions

View File

@ -398,9 +398,14 @@ class LibriSpeechAsrDataModule:
@lru_cache() @lru_cache()
def train_clean_100_cuts(self, option=None) -> CutSet: def train_clean_100_cuts(self, option=None) -> CutSet:
logging.info("About to get train-clean-100 cuts") logging.info("About to get train-clean-100 cuts")
return load_manifest_lazy( if option is None:
self.args.manifest_dir / "librispeech_cuts_train-clean-100_new.jsonl" return load_manifest_lazy(
) self.args.manifest_dir / "librispeech_cuts_train-clean-100_new.jsonl"
)
elif option == 'male'
return load_manifest_lazy(
self.args.manifest_dir / "librispeech_cuts_train-clean-100_male.jsonl"
)
@lru_cache() @lru_cache()
def train_clean_360_cuts(self) -> CutSet: def train_clean_360_cuts(self) -> CutSet: