From c5f0d7ef2376c236f405cfd56e7ae1467ac51758 Mon Sep 17 00:00:00 2001 From: Can Balioglu Date: Wed, 27 Sep 2023 22:53:34 -0400 Subject: [PATCH] Apply Bessel correction in fbank conversion (#71) --- .../src/fairseq2n/data/audio/waveform_to_fbank_converter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fairseq2n/src/fairseq2n/data/audio/waveform_to_fbank_converter.cc b/fairseq2n/src/fairseq2n/data/audio/waveform_to_fbank_converter.cc index de02a44c2..b63c30b6e 100644 --- a/fairseq2n/src/fairseq2n/data/audio/waveform_to_fbank_converter.cc +++ b/fairseq2n/src/fairseq2n/data/audio/waveform_to_fbank_converter.cc @@ -70,7 +70,7 @@ waveform_to_fbank_converter::operator()(data &&d) const if (opts_.standardize()) { at::Tensor stdev{}, mean{}; - std::tie(stdev, mean) = at::std_mean(fbank, /*dim=*/0, /*unbiased=*/true); + std::tie(stdev, mean) = at::std_mean(fbank, /*dim=*/0); fbank = at::divide(at::subtract(fbank, mean), stdev); }