Update README.md
Browse files
README.md
CHANGED
@@ -11,7 +11,7 @@ license: cc-by-nc-4.0
|
|
11 |
# Model card for BVRA/resnet34.ft_in1k_df20m_299
|
12 |
|
13 |
## Model Details
|
14 |
-
- **Model Type:**
|
15 |
- **Model Stats:**
|
16 |
- Params (M): ??
|
17 |
- Image size: 299 x 299
|
@@ -29,12 +29,12 @@ from PIL import Image
|
|
29 |
from urllib.request import urlopen
|
30 |
model = timm.create_model("hf-hub:BVRA/resnet34.ft_in1k_df20m_299", pretrained=True)
|
31 |
model = model.eval()
|
32 |
-
train_transforms = T.Compose([T.Resize(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 |
-
|
38 |
```
|
39 |
|
40 |
## Citation
|
|
|
11 |
# Model card for BVRA/resnet34.ft_in1k_df20m_299
|
12 |
|
13 |
## Model Details
|
14 |
+
- **Model Type:** Danish Fungi Classification
|
15 |
- **Model Stats:**
|
16 |
- Params (M): ??
|
17 |
- Image size: 299 x 299
|
|
|
29 |
from urllib.request import urlopen
|
30 |
model = timm.create_model("hf-hub:BVRA/resnet34.ft_in1k_df20m_299", pretrained=True)
|
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 |
+
|
38 |
```
|
39 |
|
40 |
## Citation
|