Upload README.md with huggingface_hub
Browse files
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([
|
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,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 |
```
|
|