You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,3 +114,31 @@ It has the members:
114
114
### Imagenet-12
115
115
116
116
This is simply implemented with an ImageFolder dataset, after the data is preprocessed [as described here](https://github.com/facebook/fb.resnet.torch/blob/master/INSTALL.md#download-the-imagenet-dataset)
117
+
118
+
# Transforms
119
+
120
+
Transforms are common image transforms.
121
+
They can be chained together using `transforms.Compose`
122
+
123
+
-`ToTensor()` - converts PIL Image to Tensor
124
+
-`Normalize(mean, std)` - normalizes the image given mean, std (for example: mean = [0.3, 1.2, 2.1])
125
+
-`Scale(size, interpolation=Image.BILINEAR)` - Scales the smaller image edge to the given size. Interpolation modes are options from PIL
126
+
-`CenterCrop(size)` - center-crops the image to the given size
127
+
-`RandomCrop(size)` - Random crops the image to the given size.
128
+
-`RandomHorizontalFlip()` - hflip the image with probability 0.5
129
+
-`RandomSizedCrop(size, interpolation=Image.BILINEAR)` - Random crop with size 0.08-1 and aspect ratio 3/4 - 4/3 (Inception-style)
0 commit comments