mirror of https://github.com/coqui-ai/TTS.git
plot float16 alignments
This commit is contained in:
parent
13c6665c92
commit
e4680e1b99
|
@ -17,6 +17,8 @@ def plot_alignment(alignment,
|
|||
alignment_ = alignment.detach().cpu().numpy().squeeze()
|
||||
else:
|
||||
alignment_ = alignment
|
||||
alignment_ = alignment_.astype(
|
||||
np.float32) if alignment_.dtype == np.float16 else alignment_
|
||||
fig, ax = plt.subplots(figsize=fig_size)
|
||||
im = ax.imshow(alignment_.T,
|
||||
aspect='auto',
|
||||
|
|
Loading…
Reference in New Issue