diff --git a/egs/aishell4/ASR/zipformer/onnx_decode.py b/egs/aishell4/ASR/zipformer/onnx_decode.py index aa2c4c760..6541bc1b9 100755 --- a/egs/aishell4/ASR/zipformer/onnx_decode.py +++ b/egs/aishell4/ASR/zipformer/onnx_decode.py @@ -259,18 +259,13 @@ def main(): c.supervisions[0].text = text_normalize(text) return c - dev_cuts = aishell4.valid_cuts() - dev_cuts = dev_cuts.map(text_normalize_for_cut) - dev_cuts = dev_cuts.filter(remove_short_utt) - dev_dl = aishell4.valid_dataloaders(dev_cuts) - test_cuts = aishell4.test_cuts() test_cuts = test_cuts.map(text_normalize_for_cut) test_cuts = test_cuts.filter(remove_short_utt) test_dl = aishell4.test_dataloaders(test_cuts) - test_sets = ["dev", "test"] - test_dls = [dev_dl, test_dl] + test_sets = ["test"] + test_dls = [test_dl] for test_set, test_dl in zip(test_sets, test_dls): start_time = time.time() diff --git a/egs/aishell4/ASR/zipformer/streaming_decode.py b/egs/aishell4/ASR/zipformer/streaming_decode.py index 9f73c6c70..bd3c6fb78 100755 --- a/egs/aishell4/ASR/zipformer/streaming_decode.py +++ b/egs/aishell4/ASR/zipformer/streaming_decode.py @@ -866,14 +866,10 @@ def main(): c.supervisions[0].text = text_normalize(text) return c - dev_cuts = aishell4.valid_cuts() test_cuts = aishell4.test_cuts() - - dev_cuts = dev_cuts.map(text_normalize_for_cut) test_cuts = test_cuts.map(text_normalize_for_cut) - - test_sets = ["dev", "test"] - test_cuts = [dev_cuts, test_cuts] + test_sets = ["test"] + test_cuts = [test_cuts] for test_set, test_cut in zip(test_sets, test_cuts): results_dict = decode_dataset(