Update README.md
Browse files
README.md
CHANGED
@@ -8,10 +8,10 @@ tags:
|
|
8 |
library_name: DanishFungi
|
9 |
license: cc-by-nc-4.0
|
10 |
---
|
11 |
-
# Model card for BVRA/inception_v4.
|
12 |
|
13 |
## Model Details
|
14 |
-
- **Model Type:**
|
15 |
- **Model Stats:**
|
16 |
- Params (M): ??
|
17 |
- Image size: 299 x 299
|
@@ -27,15 +27,35 @@ import torch
|
|
27 |
import torchvision.transforms as T
|
28 |
from PIL import Image
|
29 |
from urllib.request import urlopen
|
30 |
-
model = timm.create_model("hf-hub:BVRA/inception_v4.
|
31 |
model = model.eval()
|
32 |
-
train_transforms = T.Compose([T.Resize(299),
|
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 |
|
40 |
-
## Citation
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
library_name: DanishFungi
|
9 |
license: cc-by-nc-4.0
|
10 |
---
|
11 |
+
# Model card for BVRA/inception_v4.in1k_ft_df20m_299
|
12 |
|
13 |
## Model Details
|
14 |
+
- **Model Type:** Danish Fungi Classification
|
15 |
- **Model Stats:**
|
16 |
- Params (M): ??
|
17 |
- Image size: 299 x 299
|
|
|
27 |
import torchvision.transforms as T
|
28 |
from PIL import Image
|
29 |
from urllib.request import urlopen
|
30 |
+
model = timm.create_model("hf-hub:BVRA/inception_v4.in1k_ft_df20m_299", pretrained=True)
|
31 |
model = model.eval()
|
32 |
+
train_transforms = T.Compose([T.Resize((299, 299)),
|
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 |
```
|
38 |
|
39 |
+
## Citation
|
40 |
+
```bibtex
|
41 |
+
@InProceedings{Picek_2022_WACV,
|
42 |
+
author = {Picek, Luk'a{s} and {S}ulc, Milan and Matas, Ji{r}{'\i} and Jeppesen, Thomas S. and Heilmann-Clausen, Jacob and L{e}ss{\o}e, Thomas and Fr{\o}slev, Tobias},
|
43 |
+
title = {Danish Fungi 2020 - Not Just Another Image Recognition Dataset},
|
44 |
+
booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
|
45 |
+
month = {January},
|
46 |
+
year = {2022},
|
47 |
+
pages = {1525-1535}
|
48 |
+
}
|
49 |
+
```
|
50 |
+
```bibtex
|
51 |
+
@article{picek2022automatic,
|
52 |
+
title={Automatic Fungi Recognition: Deep Learning Meets Mycology},
|
53 |
+
author={Picek, Luk{'a}{{s}} and {{S}}ulc, Milan and Matas, Ji{{r}}{'\i} and Heilmann-Clausen, Jacob and Jeppesen, Thomas S and Lind, Emil},
|
54 |
+
journal={Sensors},
|
55 |
+
volume={22},
|
56 |
+
number={2},
|
57 |
+
pages={633},
|
58 |
+
year={2022},
|
59 |
+
publisher={Multidisciplinary Digital Publishing Institute}
|
60 |
+
}
|
61 |
+
```
|