Skip to content

Numerical divergence for fbank feats at certain number of bins #117

@FredSRichardson

Description

@FredSRichardson

I found that the kaldifeat filter bank data starts to diverge significantly from Kaldi above a certain number of bins. For 16KHz data, this appears to be at 85 bin while for 8KHz data, this appears to be at 53 bins. I'm afraid I can't help much in terms of figuring out why there is this divergence.

To replicate this issue, duplicate the test code test_fbank_40_bins() in python/tests/test_fbank.py and and the reference generation code for test-40.txt in python/tests/test_data/run.sh replacing 40 with 86 (for the file names, command line parameter --num-mel-bins and the runtime option opts.mel_opts.num_bins). When I did this, the test failed at the assert torch.allclose(features, gt, rtol=1e-1) step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions