commit files to HF hub
Browse files- README.md +27 -0
- config.json +68 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/events.out.tfevents.1702679657.cbefff3dfe26.196.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: fruit-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.6404494643211365
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# fruit-disease-classifier
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
Autogenerated by a tweeked version HuggingPics🤗🖼️
|
| 26 |
+
|
| 27 |
+
|
config.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "Anthracnose Fruit Rot",
|
| 13 |
+
"1": "Apple Scab",
|
| 14 |
+
"10": "Grape Anthracnose",
|
| 15 |
+
"11": "Grape Downy Mildew",
|
| 16 |
+
"12": "Late Blight",
|
| 17 |
+
"13": "Melon Powdery Mildew",
|
| 18 |
+
"14": "Peach Leaf Curl",
|
| 19 |
+
"15": "Pear Scab",
|
| 20 |
+
"16": "Plum Pox Virus",
|
| 21 |
+
"17": "Strawberry Leaf Spot",
|
| 22 |
+
"18": "Tomato Mosaic Virus",
|
| 23 |
+
"19": "Tomato Yellow Leaf Curl Virus",
|
| 24 |
+
"2": "Blossom End Rot",
|
| 25 |
+
"3": "Blueberry Rust",
|
| 26 |
+
"4": "Brown Rot",
|
| 27 |
+
"5": "Cherry Brown Rot",
|
| 28 |
+
"6": "Citrus Canker",
|
| 29 |
+
"7": "Citrus Scab",
|
| 30 |
+
"8": "Fire Blight",
|
| 31 |
+
"9": "Fusarium Wilt"
|
| 32 |
+
},
|
| 33 |
+
"image_size": 224,
|
| 34 |
+
"initializer_range": 0.02,
|
| 35 |
+
"intermediate_size": 3072,
|
| 36 |
+
"label2id": {
|
| 37 |
+
"Anthracnose Fruit Rot": "0",
|
| 38 |
+
"Apple Scab": "1",
|
| 39 |
+
"Blossom End Rot": "2",
|
| 40 |
+
"Blueberry Rust": "3",
|
| 41 |
+
"Brown Rot": "4",
|
| 42 |
+
"Cherry Brown Rot": "5",
|
| 43 |
+
"Citrus Canker": "6",
|
| 44 |
+
"Citrus Scab": "7",
|
| 45 |
+
"Fire Blight": "8",
|
| 46 |
+
"Fusarium Wilt": "9",
|
| 47 |
+
"Grape Anthracnose": "10",
|
| 48 |
+
"Grape Downy Mildew": "11",
|
| 49 |
+
"Late Blight": "12",
|
| 50 |
+
"Melon Powdery Mildew": "13",
|
| 51 |
+
"Peach Leaf Curl": "14",
|
| 52 |
+
"Pear Scab": "15",
|
| 53 |
+
"Plum Pox Virus": "16",
|
| 54 |
+
"Strawberry Leaf Spot": "17",
|
| 55 |
+
"Tomato Mosaic Virus": "18",
|
| 56 |
+
"Tomato Yellow Leaf Curl Virus": "19"
|
| 57 |
+
},
|
| 58 |
+
"layer_norm_eps": 1e-12,
|
| 59 |
+
"model_type": "vit",
|
| 60 |
+
"num_attention_heads": 12,
|
| 61 |
+
"num_channels": 3,
|
| 62 |
+
"num_hidden_layers": 12,
|
| 63 |
+
"patch_size": 16,
|
| 64 |
+
"problem_type": "single_label_classification",
|
| 65 |
+
"qkv_bias": true,
|
| 66 |
+
"torch_dtype": "float32",
|
| 67 |
+
"transformers_version": "4.35.2"
|
| 68 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8e526d279d323a7ba6f2d3426b3e242677ffd725b1a78f4a09f43f3601f6137
|
| 3 |
+
size 343279344
|
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.1702679657.cbefff3dfe26.196.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:075f6963b7f108e8b8db54afc28d72af45dee238bc60650d3f6b4d66c2861cd4
|
| 3 |
+
size 3262
|