Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
---
|
2 |
tags:
|
3 |
- image-classification
|
@@ -6,38 +7,34 @@ tags:
|
|
6 |
library_name: DanishFungi
|
7 |
license: cc-by-nc-4.0
|
8 |
---
|
9 |
-
|
10 |
-
|
11 |
-
A Swin-S image feature model. Superwisely pre-trained on animal re-identification datasets.
|
12 |
-
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
|
41 |
-
|
42 |
|
43 |
-
|
|
|
1 |
+
|
2 |
---
|
3 |
tags:
|
4 |
- image-classification
|
|
|
7 |
library_name: DanishFungi
|
8 |
license: cc-by-nc-4.0
|
9 |
---
|
10 |
+
# Model card for MHanzl/DF23M-mobilenetv2_100.ra_in1k_224
|
|
|
|
|
|
|
11 |
|
12 |
+
## Model Details
|
13 |
+
- **Model Type:** Danish Fungi Classification
|
14 |
+
- **Model Stats:**
|
15 |
+
- Params (M): ??
|
16 |
+
- Image size: [224, 224] x [224, 224]
|
17 |
+
- **Papers:**
|
18 |
+
- **Original:** ??
|
19 |
+
- **Train Dataset:** DF23M --> https://sites.google.com/view/danish-fungi-dataset
|
20 |
|
21 |
+
## Model Usage
|
22 |
+
### Image Embeddings
|
23 |
+
```python
|
24 |
+
import timm
|
25 |
+
import torch
|
26 |
+
import torchvision.transforms as T
|
27 |
+
from PIL import Image
|
28 |
+
from urllib.request import urlopen
|
29 |
+
model = timm.create_model("hf-hub:MHanzl/DF23M-mobilenetv2_100.ra_in1k_224", pretrained=True)
|
30 |
+
model = model.eval()
|
31 |
+
train_transforms = T.Compose([T.Resize([224, 224]),
|
32 |
+
T.ToTensor(),
|
33 |
+
T.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])])
|
34 |
+
img = Image.open(PATH_TO_YOUR_IMAGE)
|
35 |
+
output = model(train_transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
|
36 |
+
# output is a (1, num_features) shaped tensor
|
37 |
+
```
|
38 |
|
39 |
+
## Citation
|
40 |
|
|