Last active
June 27, 2021 17:57
-
-
Save J3698/36065f207c15625b5680d03be21fead3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def get_transforms(crop): | |
if crop: | |
return Compose([Resize(512), RandomCrop(256), ToTensor()]) | |
return Compose([Resize((256, 256)), ToTensor()]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment