Last active
September 28, 2019 14:05
-
-
Save tkshnkmr/6eae47e1227ec19a3e4d83eb2bae8437 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In my case, just added ToTensor | |
def get_transform(): | |
custom_transforms = [] | |
custom_transforms.append(torchvision.transforms.ToTensor()) | |
return torchvision.transforms.Compose(custom_transforms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment