plot float16 alignments

This commit is contained in:
erogol
2021-01-06 13:19:40 +01:00
parent 13c6665c92
commit e4680e1b99
+2
View File
@@ -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',