matteopilotto
commited on
Commit
·
a15635e
1
Parent(s):
505495c
Update README.md
Browse files
README.md
CHANGED
@@ -29,7 +29,7 @@ from torchvision.transforms import (
|
|
29 |
checkpoint = 'google/vit-base-patch16-224-in21k'
|
30 |
feature_extractor = ViTFeatureExtractor.from_pretrained(checkpoint)
|
31 |
|
32 |
-
#
|
33 |
train_aug_transforms = Compose([
|
34 |
RandomResizedCrop(size=feature_extractor.size),
|
35 |
RandomHorizontalFlip(p=0.5),
|
@@ -38,7 +38,7 @@ train_aug_transforms = Compose([
|
|
38 |
Normalize(mean=feature_extractor.image_mean, std=feature_extractor.image_std),
|
39 |
])
|
40 |
|
41 |
-
# validation/test
|
42 |
valid_aug_transforms = Compose([
|
43 |
Resize(size=(feature_extractor.size, feature_extractor.size)),
|
44 |
ToTensor(),
|
|
|
29 |
checkpoint = 'google/vit-base-patch16-224-in21k'
|
30 |
feature_extractor = ViTFeatureExtractor.from_pretrained(checkpoint)
|
31 |
|
32 |
+
# transformations on the training set
|
33 |
train_aug_transforms = Compose([
|
34 |
RandomResizedCrop(size=feature_extractor.size),
|
35 |
RandomHorizontalFlip(p=0.5),
|
|
|
38 |
Normalize(mean=feature_extractor.image_mean, std=feature_extractor.image_std),
|
39 |
])
|
40 |
|
41 |
+
# transformations on the validation/test set
|
42 |
valid_aug_transforms = Compose([
|
43 |
Resize(size=(feature_extractor.size, feature_extractor.size)),
|
44 |
ToTensor(),
|