Closed tbright17 closed 4 years ago
Hi, thanks for reporting it. Actually that is a problem I couldn't solve, and it is tricky to dig into it because in Kapre, STFT is implemented not with FFT kernels but with DFT kernels. Ultimately, a way to fix is to use tf.stft. Technically it is not that difficult - and I already posted a gist that would do the job https://keunwoochoi.wordpress.com/2019/10/06/tensorflow-melspectrogram-layer-2-colab-notebook-and-its-compatibility-to-librosa/ . But I am not actively developing Kapre and can't spare any time to update it. I would be happy to review a PR :)
Here you have errors in lasts cells solved
This will be fixed in 0.3.
tensorflow 1.15.2 kapre 0.1.7 librosa 0.7.2 torchaudio 0.4.0 pytorch 1.4
Here is the script:
And the output is
The outputs of librosa and torchaudio are very close but not for kapre.