From 5f807427df283c3daaffd70a964e8a19b246faae Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Tue, 3 Jan 2023 13:06:34 +0900 Subject: [PATCH] from local --- .../.asr_datamodule.py.swp | Bin 32768 -> 32768 bytes .../asr_datamodule.py | 7 ++++--- 2 files changed, 4 insertions(+), 3 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 8946716b3cca4d53e2ebf9df81562b473983dd3f..f4c4e8f486f748e24dc4d02d9ff88e87a69245e4 100644 GIT binary patch delta 158 zcmZo@U}|V!5=}A)^Ym4))H7fJ0s#hwohvsd|J*1#TYxcc^G1PSdER=UxG)n$GH$b= zfit63Fbe~N4iH~uW?(oD#4CW;srol3B*c3ECR&BOcO7*P3EuT mnH*dFd9uA-+~fpvmd(>lvb+I3Wb9@^ z17}7vZx#lIAIuC4?|}F`5SIb59uVsS@jal@t3Z4lh!+5{ClFf$u@%$AiyJ5N*YRvt qFj~(z`IHLZ6CB!zRZ7 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 65613536a..096ea5bcb 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 @@ -493,9 +493,10 @@ class LibriSpeechAsrDataModule: @lru_cache() def test_other_cuts(self, option=None) -> CutSet: logging.info("About to get test-other cuts") - return load_manifest_lazy( - self.args.manifest_dir / f"librispeech_cuts_test-other_{option}.jsonl" - ) + if option is None: + return load_manifest_lazy( + self.args.manifest_dir / f"librispeech_cuts_test-other_{option}.jsonl" + ) elif option == 'user': json_list = sorted(glob(self.args.manifest_dir / "/userlibri/test-other/*")) spk_list = [json.split('/')[-1][:-6] for json in json_list]