Skip to content

Commit 94024ab

Browse files
neonwattysvekars
andauthored
Update data_loading_tutorial.py (#3283)
RandomSizedCrop depreciated in favor of RandomResizedCrop in 0.9 https://pytorch.org/vision/0.9/transforms.html Co-authored-by: Svetlana Karslioglu <[email protected]>
1 parent dfeb1ae commit 94024ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/data_loading_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def show_landmarks_batch(sample_batched):
445445
# from torchvision import transforms, datasets
446446
#
447447
# data_transform = transforms.Compose([
448-
# transforms.RandomSizedCrop(224),
448+
# transforms.RandomResizedCrop(224),
449449
# transforms.RandomHorizontalFlip(),
450450
# transforms.ToTensor(),
451451
# transforms.Normalize(mean=[0.485, 0.456, 0.406],

0 commit comments

Comments
 (0)