MHanzl commited on
Commit
908e119
1 Parent(s): 9903f4a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -7
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_resnet_v2.tf_in1k_df20m_299
12
 
13
  ## Model Details
14
- - **Model Type:** inception_resnet_v2.tf_in1k_df20m_299
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_resnet_v2.tf_in1k_df20m_299", pretrained=True)
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
- https://openaccess.thecvf.com/content/WACV2022/papers/Picek_Danish_Fungi_2020_-_Not_Just_Another_Image_Recognition_Dataset_WACV_2022_paper.pdf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  library_name: DanishFungi
9
  license: cc-by-nc-4.0
10
  ---
11
+ # Model card for BVRA/inception_resnet_v2.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_resnet_v2.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
+ ```