keunwoochoi/kapre

Reproducing examples_codes.ipynb with different libraries versions doesn't create identical spectrograms

arachid1 opened this issue · 3 comments

Hello, i tried replicating your notebook example_codes.ipynb.

At first, I set a kernel with the exact same versions in your notebook:

librosa version: 0.6.2
Keras version: 2.2.0
Keras backend: tensorflow: 1.9.0
Keras image data format: channels_last
Kapre version: 0.1.3.1

and I am able to reproduce your results perfectly.

However, it doesn't generate the same mel spectrogram with my version of librosa/keras/tensorflow/kapre, which are the following:

2020/6/23
librosa version: 0.7.2
Keras version: 2.4.2
Tensorflow version: 2.2.0
Keras image data format: channels_last
Kapre version: 0.1.7

but the kapre spectrogram is just not correct. Here is the output:

image

I even tried with the file you use in your notebook:

image

I would appreciate some help. thanks for an amazing tool!

I also get the following error:

UserWarning: PySoundFile failed. Trying audioread instead.
warnings.warn('PySoundFile failed. Trying audioread instead.')

following error

It's an warning msg from librosa and you can ignore it

The difference will be fixed in Kapre 0.3.0, which is going to be released soon.