commit files to HF hub
Browse files- README.md +27 -0
- config.json +64 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/events.out.tfevents.1702675484.41e3f89507b3.33412.0 +3 -0
README.md
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- image-classification
|
5 |
+
- pytorch
|
6 |
+
- huggingpics
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
|
10 |
+
model-index:
|
11 |
+
- name: leaf-disease-classifier
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Image Classification
|
15 |
+
type: image-classification
|
16 |
+
metrics:
|
17 |
+
- name: Accuracy
|
18 |
+
type: accuracy
|
19 |
+
value: 0.3777777850627899
|
20 |
+
---
|
21 |
+
|
22 |
+
# leaf-disease-classifier
|
23 |
+
|
24 |
+
|
25 |
+
Autogenerated by a tweeked version HuggingPics🤗🖼️
|
26 |
+
|
27 |
+
|
config.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "Alternaria Leaf Spot",
|
13 |
+
"1": "Angular Leaf Spot",
|
14 |
+
"10": "Fusarium Wilt",
|
15 |
+
"11": "Gray Mold",
|
16 |
+
"12": "Leaf Spot",
|
17 |
+
"13": "Powdery Mildew",
|
18 |
+
"14": "Rust",
|
19 |
+
"15": "Septoria Leaf Spot",
|
20 |
+
"16": "White Rust",
|
21 |
+
"17": "Yellow Leaf Curl Virus",
|
22 |
+
"2": "Anthracnose",
|
23 |
+
"3": "Bacterial Blight",
|
24 |
+
"4": "Bacterial Spot",
|
25 |
+
"5": "Black Spot",
|
26 |
+
"6": "Cercospora Leaf Spot",
|
27 |
+
"7": "Cucumber Mosaic Virus",
|
28 |
+
"8": "Downy Mildew",
|
29 |
+
"9": "Early Blight"
|
30 |
+
},
|
31 |
+
"image_size": 224,
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"intermediate_size": 3072,
|
34 |
+
"label2id": {
|
35 |
+
"Alternaria Leaf Spot": "0",
|
36 |
+
"Angular Leaf Spot": "1",
|
37 |
+
"Anthracnose": "2",
|
38 |
+
"Bacterial Blight": "3",
|
39 |
+
"Bacterial Spot": "4",
|
40 |
+
"Black Spot": "5",
|
41 |
+
"Cercospora Leaf Spot": "6",
|
42 |
+
"Cucumber Mosaic Virus": "7",
|
43 |
+
"Downy Mildew": "8",
|
44 |
+
"Early Blight": "9",
|
45 |
+
"Fusarium Wilt": "10",
|
46 |
+
"Gray Mold": "11",
|
47 |
+
"Leaf Spot": "12",
|
48 |
+
"Powdery Mildew": "13",
|
49 |
+
"Rust": "14",
|
50 |
+
"Septoria Leaf Spot": "15",
|
51 |
+
"White Rust": "16",
|
52 |
+
"Yellow Leaf Curl Virus": "17"
|
53 |
+
},
|
54 |
+
"layer_norm_eps": 1e-12,
|
55 |
+
"model_type": "vit",
|
56 |
+
"num_attention_heads": 12,
|
57 |
+
"num_channels": 3,
|
58 |
+
"num_hidden_layers": 12,
|
59 |
+
"patch_size": 16,
|
60 |
+
"problem_type": "single_label_classification",
|
61 |
+
"qkv_bias": true,
|
62 |
+
"torch_dtype": "float32",
|
63 |
+
"transformers_version": "4.35.2"
|
64 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d034f3ceaeb296241c8883001843bb0f26b0da321f925db5feb7c7742e5287bf
|
3 |
+
size 343273192
|
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.1702675484.41e3f89507b3.33412.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c2f31998ea1698e6f40aa64f5f03d1e8cd6835df9de3a21505c8eb767c22000c
|
3 |
+
size 2983
|