MHanzl commited on
Commit
6b05a43
1 Parent(s): d1a1f2b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +2 -3
README.md CHANGED
@@ -31,9 +31,9 @@ model = timm.create_model("hf-hub:MHanzl/vit_base_patch16_224.ft_df20m_224", pre
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)
36
- output = model(train_transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
37
  # output is a (1, num_features) shaped tensor
38
  ```
39
 
@@ -60,4 +60,3 @@ output = model(train_transforms(img).unsqueeze(0)) # output is (batch_size, num
60
  publisher={Multidisciplinary Digital Publishing Institute}
61
  }
62
  ```
63
-
 
31
  model = model.eval()
32
  train_transforms = T.Compose([T.Resize((224, 224)),
33
  T.ToTensor(),
34
+ T.Normalize(['?', '?'], ['?', '?'])])
35
  img = Image.open(PATH_TO_YOUR_IMAGE)
36
+ output = model(train_transforms(img).unsqueeze(0))
37
  # output is a (1, num_features) shaped tensor
38
  ```
39
 
 
60
  publisher={Multidisciplinary Digital Publishing Institute}
61
  }
62
  ```