From 33578cca48613c04c227cd22a2d2fdd207a5e928 Mon Sep 17 00:00:00 2001 From: Yifan Yang <64255737+yfyeung@users.noreply.github.com> Date: Tue, 11 Apr 2023 11:12:05 +0800 Subject: [PATCH] Fix filter_cuts in compute_fbank_librispeech.py (#993) --- egs/librispeech/ASR/local/compute_fbank_librispeech.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egs/librispeech/ASR/local/compute_fbank_librispeech.py b/egs/librispeech/ASR/local/compute_fbank_librispeech.py index 745eaf1e8..554d7f109 100755 --- a/egs/librispeech/ASR/local/compute_fbank_librispeech.py +++ b/egs/librispeech/ASR/local/compute_fbank_librispeech.py @@ -121,10 +121,10 @@ def compute_fbank_librispeech( recordings=m["recordings"], supervisions=m["supervisions"], ) - if bpe_model: - cut_set = filter_cuts(cut_set, sp) if "train" in partition: + if bpe_model: + cut_set = filter_cuts(cut_set, sp) cut_set = ( cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1) )