Skip to content

Commit

Permalink
convert to numpy before showing image
Browse files Browse the repository at this point in the history
  • Loading branch information
gschramm authored Nov 17, 2023
1 parent c50b3e1 commit a6d75f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/01_reconstruct_lm_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
fig, ax = plt.subplots(1, recon.shape[2], figsize=(recon.shape[2] * 2, 2))
for i in range(recon.shape[2]):
ax[i].imshow(
xp.asarray(to_device(recon[:, :, i], "cpu")), vmin=0, vmax=vmax, cmap="Greys"
np.asarray(to_device(recon[:, :, i], "cpu")), vmin=0, vmax=vmax, cmap="Greys"
)
ax[i].set_title(f"LM recon sl {i+1}", fontsize="small")

Expand Down

0 comments on commit a6d75f3

Please sign in to comment.