mirror of
https://github.com/coqui-ai/TTS.git
synced 2026-07-11 21:09:23 +02:00
plot float16 alignments
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user