Update README.md
Browse files
README.md
CHANGED
@@ -31,7 +31,7 @@ model = timm.create_model("hf-hub:BVRA/mobilenetv2_100.in1k_ft_df20m_299", pretr
|
|
31 |
model = model.eval()
|
32 |
train_transforms = T.Compose([T.Resize((299, 299)),
|
33 |
T.ToTensor(),
|
34 |
-
T.Normalize([0.
|
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 |
```
|
|
|
31 |
model = model.eval()
|
32 |
train_transforms = T.Compose([T.Resize((299, 299)),
|
33 |
T.ToTensor(),
|
34 |
+
T.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])
|
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 |
```
|