Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -29,7 +29,7 @@ from PIL import Image
|
|
29 |
from urllib.request import urlopen
|
30 |
model = timm.create_model("hf-hub:MHanzl/vit_base_patch16_224.ft_df20m_224", pretrained=True)
|
31 |
model = model.eval()
|
32 |
-
train_transforms = T.Compose([T.Resize(224),
|
33 |
T.ToTensor(),
|
34 |
T.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])])
|
35 |
img = Image.open(PATH_TO_YOUR_IMAGE)
|
|
|
29 |
from urllib.request import urlopen
|
30 |
model = timm.create_model("hf-hub:MHanzl/vit_base_patch16_224.ft_df20m_224", pretrained=True)
|
31 |
model = model.eval()
|
32 |
+
train_transforms = T.Compose([T.Resize((224, 224)),
|
33 |
T.ToTensor(),
|
34 |
T.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])])
|
35 |
img = Image.open(PATH_TO_YOUR_IMAGE)
|