fix add_spectrogram_plots
This commit is contained in:
parent
c864612dc3
commit
a5c81c75d5
|
@ -93,7 +93,7 @@ def add_multi_attention_plots(writer, tag, attention_weights, global_step):
|
||||||
|
|
||||||
|
|
||||||
def add_spectrogram_plots(writer, tag, spec, global_step):
|
def add_spectrogram_plots(writer, tag, spec, global_step):
|
||||||
spec = spec.numpy()
|
spec = spec.numpy().T
|
||||||
fig, ax = plt.subplots(figsize=(12, 3))
|
fig, ax = plt.subplots(figsize=(12, 3))
|
||||||
im = ax.imshow(spec, aspect="auto", origin="lower", interpolation='none')
|
im = ax.imshow(spec, aspect="auto", origin="lower", interpolation='none')
|
||||||
plt.colorbar(im, ax=ax)
|
plt.colorbar(im, ax=ax)
|
||||||
|
|
Loading…
Reference in New Issue