MHanzl commited on
Commit
e901faa
1 Parent(s): d6e4c84

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - image-classification
5
+ - ecology
6
+ - fungi
7
+ library_name: DanishFungi
8
+ license: cc-by-nc-4.0
9
+ ---
10
+ # Model card for BVRA/tf_efficientnet_b1.in1k_ft_df20m_299
11
+
12
+ ## Model Details
13
+ - **Model Type:** Danish Fungi Classification
14
+ - **Model Stats:**
15
+ - Params (M): ??
16
+ - Image size: 299 x 299
17
+ - **Papers:**
18
+ - **Original:** ??
19
+ - **Train Dataset:** DF20M --> 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:BVRA/tf_efficientnet_b1.in1k_ft_df20m_299", pretrained=True)
30
+ model = model.eval()
31
+ train_transforms = T.Compose([T.Resize(299),
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
+ https://openaccess.thecvf.com/content/WACV2022/papers/Picek_Danish_Fungi_2020_-_Not_Just_Another_Image_Recognition_Dataset_WACV_2022_paper.pdf