Path: blob/master/notebooks/griffin_lim_tensorflow.ipynb
1558 views
Kernel: Python 3
Griffin-Lim algorithm comparison between LibROSA and TF
In [1]:
Get mel spectrogram example and corresponding ground truth audio.
In [2]:
TF version has GPU compatibility and supports batch dimension.
In [3]:
Time comparison between both implementations.
In [4]:
Out[4]:
4.29 s ± 219 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [5]:
Out[5]:
717 ms ± 8.95 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [6]:
In [7]:
Out[7]:
GridBox(children=(Label(value='Ground Truth'), Label(value='Librosa'), Label(value='TensorFlow'), Audio(value=…
In [8]:
Out[8]:
In [9]:
Out[9]:
Iteration time: 46.1579s, output shape: (10, 206336)
Iteration time: 49.9080s, output shape: (10, 218624)
Iteration time: 49.4804s, output shape: (10, 219648)
Iteration time: 51.8307s, output shape: (10, 221952)
Iteration time: 48.4572s, output shape: (10, 210944)
Saving outputs with both implementations.
In [10]:
Out[10]:
0.wav
1.wav
2.wav
3.wav
4.wav
5.wav
6.wav
7.wav
8.wav
9.wav
lb.wav
tf.wav