fgnt / nara_wpe

Different implementations of "Weighted Prediction Error" for speech dereverberation
MIT License
494 stars 164 forks source link

add inplace option to wpe_v8 #41

Closed boeddeker closed 4 years ago

boeddeker commented 4 years ago

This PR allows reducing the memory consumption for wpe_v8. The loopy code already has a low memory footprint, but the code produces a copy of the input.

For example in CHiME-6 https://github.com/kaldi-asr/kaldi/blob/6247d3cf9fb50f2e7dbd9faefd21175d04435177/egs/chime6/s5_track1/local/run_wpe.py#L58 the input has a size of 2.13 GiB and is never reused after the dereverberation. The inplace option allows saving an array, that has the same size as the input array.