Skip to content

Instantly share code, notes, and snippets.

@omarsar
Created August 31, 2019 13:41
Show Gist options
  • Save omarsar/57b7114e4a631c82b695715bec728e33 to your computer and use it in GitHub Desktop.
Save omarsar/57b7114e4a631c82b695715bec728e33 to your computer and use it in GitHub Desktop.
image = transforms.ToPILImage(mode='L')(torch.randn(1, 96, 96))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment