From 337f1137d984199c113c1395a7fe3863a30d2a0f Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Wed, 28 Dec 2022 10:38:28 +0900 Subject: [PATCH] from local --- .../.asr_datamodule.py.swp | Bin 36864 -> 36864 bytes .../asr_datamodule.py | 53 +++++------------- 2 files changed, 13 insertions(+), 40 deletions(-) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.asr_datamodule.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.asr_datamodule.py.swp index 90c0503ca50c80d5fdf561dc1d9d560ebb0be25f..2ba69cf239e00db5b62e7d549bc0670dd3ca653a 100644 GIT binary patch delta 1015 zcma*lNoW&c6bJA(F}qo2P-9ZiMq3C~lTNfIE-|zqg4m{Dw1yHeHdRsztzt2)H6#U( z9%>&59@M&3qz7$AJ-C1fdT~4Gp~VGyD)ykDy$E&rPZl*r!4G~j-%Q?odEfh9Zd8*S z)i^rjww*2R%|4khM4}7l#*^~+gri*)l6*w07W8}?SFbW5Mys>32~p-^q*wg{W9>H1YgeI6ng0t`eCgBDghkalMbpv|%ip`{<3sSHZo*IcBzqd+%*M|`HeLbGx2)r6a0yGnDi&hP z@oXB2IT!roGPz5m4uKBd6_>Dph0QVbLkBm<#RUs4RTupI6_yl^;?=Uhh2ei)+#0w3 z&yuAa&Hr3WO(zpGA|*-Pn-UF#ls>Y^6*6!l@ss+r&v^bPA&pw*? delta 1173 zcmbW$Ur1AN6bJCL<#hg;-kB|`huyUNlOhv0r@L(zA3{bJv{6A1nQd1x*Jf;^jgSo= zddVK_K=rbkK|a_&^gaajqL4%s^&kX64;J;%QxFwYihZvdF}V-n4?dU6Z@+VY=XZ8~ z*}O5EH`-1+j`qh!)@;9EBdJhm}gANw@*m;SwAKEBvq!y@oUlK`-ouR~1CFa0^mk2P+7$Qcf9~ zFDH5kNsz$>)i75^^ay5P0@82*YT->O(Mxy%kKrnu1PQ*Fi9W$cSb!-=LI6zg8;AV` zpJBGdNpu-6XJ8j-mADC4U<^jV3EKR-Vxk9-D^@$&hKl&U(_9i(2E?!;a-`kI23LN= zoXiHNi+6YJq@|hhtHN-^+IHZ8!7tfQ^?&+E|jy zst1&F{Sl@0Y&;f?)RKt7-BR;*B{Dd$9xHmiV#C_92A+$Fe?tYmz-=1?wM7MCRZ-=_ z#_g*AZ8jJewOl>C*uRe_WT{9eb7^x~OS&2F(aqSiS_-Wk+GtW&WRqwaL(_H|@j$zW zRqLsXh8^xLM9Y}^08c=H`qSJMvevhEIQl}#M7(kBQ=+K5-+E!)TiYCtzW=U} zgPTLHf(of)p;U!GfEzIhTB5i#tK%(h)+i((2raOHALrpIsE`65)WMSW4fV)y&@#SQ u%uC&7{yyR_E$9;czs;u|o1bND1&OUUo!h1za8pg^uF*nuny&74R`>(1vNQ+) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/asr_datamodule.py b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/asr_datamodule.py index 148df2b6f..c816ca8d1 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/asr_datamodule.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/asr_datamodule.py @@ -396,55 +396,28 @@ class LibriSpeechAsrDataModule: return test_dl @lru_cache() - def train_clean_100_cuts(self, option=None) -> CutSet: + def train_clean_100_cuts(self, option='new') -> CutSet: logging.info("About to get train-clean-100 cuts") - if option is None: - 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" - ) - elif option == 'female': - return load_manifest_lazy( - self.args.manifest_dir / "librispeech_cuts_train-clean-100_female.jsonl" - ) + return load_manifest_lazy( + self.args.manifest_dir / f"librispeech_cuts_train-clean-100_{option}.jsonl" + ) @lru_cache() - def train_clean_360_cuts(self, option=None) -> CutSet: + def train_clean_360_cuts(self, option='new') -> CutSet: logging.info("About to get train-clean-360 cuts") - if option is None: - return load_manifest_lazy( - self.args.manifest_dir / "librispeech_cuts_train-clean-360_new.jsonl" - ) - elif option == 'male': - return load_manifest_lazy( - self.args.manifest_dir / "librispeech_cuts_train-clean-360_male.jsonl" - ) - elif option == 'female': - return load_manifest_lazy( - self.args.manifest_dir / "librispeech_cuts_train-clean-360_female.jsonl" - ) + 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: + def train_other_500_cuts(self, option='new') -> CutSet: logging.info("About to get train-other-500 cuts") - if option is None: - return load_manifest_lazy( - self.args.manifest_dir / "librispeech_cuts_train-other-500_new.jsonl" - ) - elif option == 'male': - return load_manifest_lazy( - self.args.manifest_dir / "librispeech_cuts_train-other-500_male.jsonl" - ) - elif option == 'female': - return load_manifest_lazy( - self.args.manifest_dir / "librispeech_cuts_train-other-500_female.jsonl" - ) + 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: + def train_all_shuf_cuts(self) -> CutSet: logging.info( "About to get the shuffled train-clean-100, \ train-clean-360 and train-other-500 cuts"