A PyTorch implementation of the Weighted Prediction Error (WPE) algorithm, primarily for speech dereverberation. It serves as a proof-of-concept, closely mirroring the WPE implementation found in `nara_wpe`. The current version is 0.0.1, released in March 2021. Due to its 'proof of concept' nature and age, it does not appear to have an active release cadence or dedicated maintenance.
pip install pytorch-wpeVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates basic usage of key functions like `signal_framing` and `get_power` using a synthetic `ComplexTensor` as input. A real-world application would involve feeding Short-Time Fourier Transform (STFT) outputs of audio signals into these functions.
Pin specific versions of `torch` and `torch_complex` in your project to mitigate unforeseen breakage. Be prepared for manual code adaptation if migrating to newer environments.
Benchmark performance thoroughly for your specific use case. For production or performance-critical systems, consider optimized WPE implementations like `nara_wpe` (which this library is based on) or highly optimized C++/CUDA versions.
Refer to the source code (`pytorch_wpe.py` in the GitHub repo) for detailed understanding of function signatures and internal logic. Knowledge of the original WPE algorithm and `nara_wpe` will be beneficial for effective use.