MHanzl commited on
Commit
3d18193
1 Parent(s): 01c621e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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)