Skip to content

Instantly share code, notes, and snippets.

@sachadee
Created May 7, 2022 07:49
Show Gist options
  • Save sachadee/ba7cb7339e7958763d8e53e66757c81b to your computer and use it in GitHub Desktop.
Save sachadee/ba7cb7339e7958763d8e53e66757c81b to your computer and use it in GitHub Desktop.
Easy solution
tensor_to_pil = transforms.ToPILImage()(tensor)
tensor_to_pil.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment