Skip to content

Instantly share code, notes, and snippets.

@rafalpronko
Created February 11, 2019 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafalpronko/de4b6e6e74f7a2efdfe91b2369326b8a to your computer and use it in GitHub Desktop.
Save rafalpronko/de4b6e6e74f7a2efdfe91b2369326b8a to your computer and use it in GitHub Desktop.
def imshowPytorch(img):
npimg = img.numpy()
plt.imshow(np.transpose(npimg, (1, 2, 0)))
def imshowTensorFlow(img):
plt.imshow(img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment