commit files to HF hub
Browse files- .gitattributes +10 -0
- README.md +70 -0
- config.json +48 -0
- images/Tomato_Bacterial_spot.jpg +3 -0
- images/Tomato_Early_blight.jpg +3 -0
- images/Tomato_Late_blight.jpg +3 -0
- images/Tomato_Leaf_Mold.jpg +3 -0
- images/Tomato_Septoria_leaf_spot.jpg +3 -0
- images/Tomato_Spider_mites_Two_spotted_spider_mite.jpg +3 -0
- images/Tomato__Target_Spot.jpg +3 -0
- images/Tomato__Tomato_YellowLeaf__Curl_Virus.jpg +3 -0
- images/Tomato__Tomato_mosaic_virus.jpg +3 -0
- images/Tomato_healthy.jpg +3 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/events.out.tfevents.1727226507.aa9dcfa4f0c6.396.0 +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
images/Tomato_Bacterial_spot.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
images/Tomato_Early_blight.jpg filter=lfs diff=lfs merge=lfs -text
|
38 |
+
images/Tomato_Late_blight.jpg filter=lfs diff=lfs merge=lfs -text
|
39 |
+
images/Tomato_Leaf_Mold.jpg filter=lfs diff=lfs merge=lfs -text
|
40 |
+
images/Tomato_Septoria_leaf_spot.jpg filter=lfs diff=lfs merge=lfs -text
|
41 |
+
images/Tomato_Spider_mites_Two_spotted_spider_mite.jpg filter=lfs diff=lfs merge=lfs -text
|
42 |
+
images/Tomato__Target_Spot.jpg filter=lfs diff=lfs merge=lfs -text
|
43 |
+
images/Tomato__Tomato_YellowLeaf__Curl_Virus.jpg filter=lfs diff=lfs merge=lfs -text
|
44 |
+
images/Tomato__Tomato_mosaic_virus.jpg filter=lfs diff=lfs merge=lfs -text
|
45 |
+
images/Tomato_healthy.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- image-classification
|
4 |
+
- pytorch
|
5 |
+
- huggingpics
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
|
9 |
+
model-index:
|
10 |
+
- name: tomatoDiseaseClassifier
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Image Classification
|
14 |
+
type: image-classification
|
15 |
+
metrics:
|
16 |
+
- name: Accuracy
|
17 |
+
type: accuracy
|
18 |
+
value: 0.9908371567726135
|
19 |
+
---
|
20 |
+
|
21 |
+
# tomatoDiseaseClassifier
|
22 |
+
|
23 |
+
|
24 |
+
Autogenerated by HuggingPics🤗🖼️
|
25 |
+
|
26 |
+
This model is designed for classifying [YOUR TASK] images. It was fine-tuned using PyTorch Lightning and Hugging Face transformers.
|
27 |
+
|
28 |
+
|
29 |
+
## Example Images
|
30 |
+
|
31 |
+
|
32 |
+
#### Tomato_Bacterial_spot
|
33 |
+
|
34 |
+
![Tomato_Bacterial_spot](images/Tomato_Bacterial_spot.jpg)
|
35 |
+
|
36 |
+
#### Tomato_Early_blight
|
37 |
+
|
38 |
+
![Tomato_Early_blight](images/Tomato_Early_blight.jpg)
|
39 |
+
|
40 |
+
#### Tomato_Late_blight
|
41 |
+
|
42 |
+
![Tomato_Late_blight](images/Tomato_Late_blight.jpg)
|
43 |
+
|
44 |
+
#### Tomato_Leaf_Mold
|
45 |
+
|
46 |
+
![Tomato_Leaf_Mold](images/Tomato_Leaf_Mold.jpg)
|
47 |
+
|
48 |
+
#### Tomato_Septoria_leaf_spot
|
49 |
+
|
50 |
+
![Tomato_Septoria_leaf_spot](images/Tomato_Septoria_leaf_spot.jpg)
|
51 |
+
|
52 |
+
#### Tomato_Spider_mites_Two_spotted_spider_mite
|
53 |
+
|
54 |
+
![Tomato_Spider_mites_Two_spotted_spider_mite](images/Tomato_Spider_mites_Two_spotted_spider_mite.jpg)
|
55 |
+
|
56 |
+
#### Tomato__Target_Spot
|
57 |
+
|
58 |
+
![Tomato__Target_Spot](images/Tomato__Target_Spot.jpg)
|
59 |
+
|
60 |
+
#### Tomato__Tomato_YellowLeaf__Curl_Virus
|
61 |
+
|
62 |
+
![Tomato__Tomato_YellowLeaf__Curl_Virus](images/Tomato__Tomato_YellowLeaf__Curl_Virus.jpg)
|
63 |
+
|
64 |
+
#### Tomato__Tomato_mosaic_virus
|
65 |
+
|
66 |
+
![Tomato__Tomato_mosaic_virus](images/Tomato__Tomato_mosaic_virus.jpg)
|
67 |
+
|
68 |
+
#### Tomato_healthy
|
69 |
+
|
70 |
+
![Tomato_healthy](images/Tomato_healthy.jpg)
|
config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "Tomato_Bacterial_spot",
|
13 |
+
"1": "Tomato_Early_blight",
|
14 |
+
"2": "Tomato_Late_blight",
|
15 |
+
"3": "Tomato_Leaf_Mold",
|
16 |
+
"4": "Tomato_Septoria_leaf_spot",
|
17 |
+
"5": "Tomato_Spider_mites_Two_spotted_spider_mite",
|
18 |
+
"6": "Tomato__Target_Spot",
|
19 |
+
"7": "Tomato__Tomato_YellowLeaf__Curl_Virus",
|
20 |
+
"8": "Tomato__Tomato_mosaic_virus",
|
21 |
+
"9": "Tomato_healthy"
|
22 |
+
},
|
23 |
+
"image_size": 224,
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"intermediate_size": 3072,
|
26 |
+
"label2id": {
|
27 |
+
"Tomato_Bacterial_spot": "0",
|
28 |
+
"Tomato_Early_blight": "1",
|
29 |
+
"Tomato_Late_blight": "2",
|
30 |
+
"Tomato_Leaf_Mold": "3",
|
31 |
+
"Tomato_Septoria_leaf_spot": "4",
|
32 |
+
"Tomato_Spider_mites_Two_spotted_spider_mite": "5",
|
33 |
+
"Tomato__Target_Spot": "6",
|
34 |
+
"Tomato__Tomato_YellowLeaf__Curl_Virus": "7",
|
35 |
+
"Tomato__Tomato_mosaic_virus": "8",
|
36 |
+
"Tomato_healthy": "9"
|
37 |
+
},
|
38 |
+
"layer_norm_eps": 1e-12,
|
39 |
+
"model_type": "vit",
|
40 |
+
"num_attention_heads": 12,
|
41 |
+
"num_channels": 3,
|
42 |
+
"num_hidden_layers": 12,
|
43 |
+
"patch_size": 16,
|
44 |
+
"problem_type": "single_label_classification",
|
45 |
+
"qkv_bias": true,
|
46 |
+
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.44.2"
|
48 |
+
}
|
images/Tomato_Bacterial_spot.jpg
ADDED
Git LFS Details
|
images/Tomato_Early_blight.jpg
ADDED
Git LFS Details
|
images/Tomato_Late_blight.jpg
ADDED
Git LFS Details
|
images/Tomato_Leaf_Mold.jpg
ADDED
Git LFS Details
|
images/Tomato_Septoria_leaf_spot.jpg
ADDED
Git LFS Details
|
images/Tomato_Spider_mites_Two_spotted_spider_mite.jpg
ADDED
Git LFS Details
|
images/Tomato__Target_Spot.jpg
ADDED
Git LFS Details
|
images/Tomato__Tomato_YellowLeaf__Curl_Virus.jpg
ADDED
Git LFS Details
|
images/Tomato__Tomato_mosaic_virus.jpg
ADDED
Git LFS Details
|
images/Tomato_healthy.jpg
ADDED
Git LFS Details
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35420e3b27a39b351cb2a1fda2de37fd183dd398a53405a9e50b45690de5b416
|
3 |
+
size 343248584
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTFeatureExtractor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"resample": 2,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|
runs/events.out.tfevents.1727226507.aa9dcfa4f0c6.396.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e13a8efbb176be8c6ff160f37f803ea032daa4fabc441e50c982a4659d35641
|
3 |
+
size 13585
|