From 4dc8108e9e0c2d7d8634c8c63e3ceaa9167f0a6a Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Wed, 4 Jan 2023 03:20:25 +0900 Subject: [PATCH] from local --- .../.decode.py.swp | Bin 40960 -> 40960 bytes .../decode.py | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.decode.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.decode.py.swp index eaa7d8330138046d98700b48aab6a9c3761cab77..dcf4dad8bde276a5f28900e844a06dc27ee22cf0 100644 GIT binary patch delta 302 zcmWm9u}cDR0LAg=d6@;qRS-d39zjs#(4>ZlOPfQ3AZ?eRf`by)o_n?QvmqM$12PVm zaFC|ZsiDFt`VTs{7U|pYfj2$g>kO^V(CYm-k#Z0^tI0$zDm~hg9I0%U_szw4QMyGH z2XHZ4kiId(1I|%L4Mn72V-lCf7~ut{*o2GMdFc#o6tIE>zGBh zhI?G&3T>3I2Vu(m5TE$KJD%}>t7|{K{aU7*N~5*2t47`P{Z^$}^L;O$_qKw5 adc!t1nPjk*=|#+4)-|*2aj=w|R{sEmCp<_1 delta 189 zcmWO0FAo860EhAK;m)7U?YN=|Gy>agf=!}$2f8V`okW$4-z)GAY&ZQTNv0oB_NSca z37`Bt>o~KHGsm}Q4Wp0e*UKAQIysU&X=o}Pv$~X|1)6B!T9lRuF+vSKo(1WQ9cCD# v1s7>vy5RtWJwi;-g@Yf}6c5~yAa;~xC$e%|+suP@lmxG=srCku+y74gCx#^+ diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/decode.py b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/decode.py index 02ead7316..fdbc074f7 100755 --- a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/decode.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/decode.py @@ -781,6 +781,24 @@ def main(): test_sets = ["test-clean", "test-other"] test_dl = [test_clean_dl, test_other_dl] + + for test_set, test_dl in zip(test_sets, test_dl): + for test_set, test_dl in zip(sets, dls): + results_dict = decode_dataset( + dl=test_dl, + params=params, + model=model, + sp=sp, + word_table=word_table, + decoding_graph=decoding_graph, + ) + + save_results( + params=params, + test_set_name=test_set, + results_dict=results_dict, + ) + ''' test_clean_cuts, test_clean_sets = librispeech.test_clean_cuts(option='user') test_other_cuts, test_other_sets = librispeech.test_other_cuts(option='user')