From f13068082077e2a652d645a5d7630157ec881019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=89=E6=B8=8A?= Date: Tue, 25 Apr 2023 19:20:13 +0800 Subject: [PATCH] update --- egs/aishell/transformer/utils/compute_cmvn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egs/aishell/transformer/utils/compute_cmvn.py b/egs/aishell/transformer/utils/compute_cmvn.py index 53f390c99..4fefd3a38 100755 --- a/egs/aishell/transformer/utils/compute_cmvn.py +++ b/egs/aishell/transformer/utils/compute_cmvn.py @@ -73,8 +73,8 @@ def main(): wav_scp_file = os.path.join(args.wav_path + "{}/wav.scp".format(args.idx)) cmvn_file = os.path.join(args.wav_path + "{}/cmvn.json".format(args.idx)) - mean_stats = np.zeros(args.dims) - var_stats = np.zeros(args.dims) + mean_stats = np.zeros(args.dim) + var_stats = np.zeros(args.dim) total_frames = 0 # with ReadHelper('ark:{}'.format(ark_file)) as ark_reader: