python-pesq icon indicating copy to clipboard operation
python-pesq copied to clipboard

Windows fatal exception: stack overflow error

Open elchaima1234 opened this issue 2 months ago • 0 comments

To calculate the PESQ between the original audio (input to the model) and the reconstructed audio (output of the model), I used the following code:

from pypesq import pesq original_audio, _ = librosa.load("original_audio.wav", sr=FS) reconstructed_audio, _ = librosa.load("reconstructed_audio.wav", sr=FS) curr_pesq = pesq(original_audio, reconstructed_audio, FS) print("PESQ:", curr_pesq)

Here is some necessary information about the two audio files (.wav):

Original Audio Length: 32193 Watermarked Audio Length: 32193 Sample Rate: 16000 Original audio type: float32, shape: (32193,) Watermarked audio type: float32, shape: (32193,)

However, every time I try to compute the PESQ, I encounter a "Windows fatal exception: stack overflow" error.

I have installed the required package, but I am unsure what the issue might be. Capture d'écran 2024-12-11 191715

Has anyone experienced this problem before? Interestingly, it works on Google Colab, but when I use Spyder on my local machine, I get this error.

elchaima1234 avatar Dec 11 '24 18:12 elchaima1234