Commit
·
0881abf
1
Parent(s):
279eb2b
commit files to HF hub
Browse files- .gitattributes +30 -0
- README.md +152 -0
- config.json +89 -0
- images/Bellpepper_fresh.jpeg +3 -0
- images/Bellpepper_intermediate_fresh.png +3 -0
- images/Bellpepper_rotten.jpg +3 -0
- images/Carrot_fresh.jpeg +3 -0
- images/Carrot_intermediate_fresh.jpg +3 -0
- images/Carrot_rotten.jpeg +3 -0
- images/Cucumber_fresh.jpg +3 -0
- images/Cucumber_intermediate_fresh.jpeg +3 -0
- images/Cucumber_rotten.jpg +3 -0
- images/Potato_fresh.jpeg +3 -0
- images/Potato_intermediate_fresh.png +3 -0
- images/Potato_rotten.jpg +3 -0
- images/Tomato_fresh.jpg +3 -0
- images/Tomato_intermediate_fresh.jpeg +3 -0
- images/Tomato_rotten.jpeg +3 -0
- images/ripe_apple.jpg +3 -0
- images/ripe_banana.jpg +3 -0
- images/ripe_mango.jpg +3 -0
- images/ripe_oranges.png +3 -0
- images/ripe_strawberry.jpg +3 -0
- images/rotten_apple.webp +3 -0
- images/rotten_banana.png +3 -0
- images/rotten_mango.jpg +3 -0
- images/rotten_oranges.png +3 -0
- images/rotten_strawberry.jpg +3 -0
- images/unripe_apple.jpg +3 -0
- images/unripe_banana.jpg +3 -0
- images/unripe_mango.jpg +3 -0
- images/unripe_oranges.jpg +3 -0
- images/unripe_strawberry.jpg +3 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- runs/events.out.tfevents.1749204106.ac2f9455b857.424.0 +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,33 @@ 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/Bellpepper_fresh.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
images/Bellpepper_intermediate_fresh.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
images/Bellpepper_rotten.jpg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
images/Carrot_fresh.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
images/Carrot_intermediate_fresh.jpg filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
images/Carrot_rotten.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
images/Cucumber_fresh.jpg filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
images/Cucumber_intermediate_fresh.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
images/Cucumber_rotten.jpg filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
images/Potato_fresh.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
images/Potato_intermediate_fresh.png filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
images/Potato_rotten.jpg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
images/Tomato_fresh.jpg filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
images/Tomato_intermediate_fresh.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
images/Tomato_rotten.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
images/ripe_apple.jpg filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
images/ripe_banana.jpg filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
images/ripe_mango.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
images/ripe_oranges.png filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
images/ripe_strawberry.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
images/rotten_apple.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
images/rotten_banana.png filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
images/rotten_mango.jpg filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
images/rotten_oranges.png filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
images/rotten_strawberry.jpg filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
images/unripe_apple.jpg filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
images/unripe_banana.jpg filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
images/unripe_mango.jpg filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
images/unripe_oranges.jpg filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
images/unripe_strawberry.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- image-classification
|
| 4 |
+
- pytorch
|
| 5 |
+
- huggingpics
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
|
| 9 |
+
model-index:
|
| 10 |
+
- name: freshness_detector_updated
|
| 11 |
+
results:
|
| 12 |
+
- task:
|
| 13 |
+
name: Image Classification
|
| 14 |
+
type: image-classification
|
| 15 |
+
metrics:
|
| 16 |
+
- name: Accuracy
|
| 17 |
+
type: accuracy
|
| 18 |
+
value: 0.9561068415641785
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# freshness_detector_updated
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
Autogenerated by HuggingPics🤗🖼️
|
| 25 |
+
|
| 26 |
+
Create your own image classifier for **anything** by running [the demo on Google Colab](https://colab.research.google.com/github/nateraw/huggingpics/blob/main/HuggingPics.ipynb).
|
| 27 |
+
|
| 28 |
+
Report any issues with the demo at the [github repo](https://github.com/nateraw/huggingpics).
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
## Example Images
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
#### Bellpepper_fresh
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
|
| 38 |
+
#### Bellpepper_intermediate_fresh
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
|
| 42 |
+
#### Bellpepper_rotten
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
|
| 46 |
+
#### Carrot_fresh
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
|
| 50 |
+
#### Carrot_intermediate_fresh
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
|
| 54 |
+
#### Carrot_rotten
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
|
| 58 |
+
#### Cucumber_fresh
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
|
| 62 |
+
#### Cucumber_intermediate_fresh
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
|
| 66 |
+
#### Cucumber_rotten
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
|
| 70 |
+
#### Potato_fresh
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
|
| 74 |
+
#### Potato_intermediate_fresh
|
| 75 |
+
|
| 76 |
+

|
| 77 |
+
|
| 78 |
+
#### Potato_rotten
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
|
| 82 |
+
#### Tomato_fresh
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
|
| 86 |
+
#### Tomato_intermediate_fresh
|
| 87 |
+
|
| 88 |
+

|
| 89 |
+
|
| 90 |
+
#### Tomato_rotten
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
|
| 94 |
+
#### ripe_apple
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
|
| 98 |
+
#### ripe_banana
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
|
| 102 |
+
#### ripe_mango
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
|
| 106 |
+
#### ripe_oranges
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
|
| 110 |
+
#### ripe_strawberry
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
|
| 114 |
+
#### rotten_apple
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
|
| 118 |
+
#### rotten_banana
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
|
| 122 |
+
#### rotten_mango
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
|
| 126 |
+
#### rotten_oranges
|
| 127 |
+
|
| 128 |
+

|
| 129 |
+
|
| 130 |
+
#### rotten_strawberry
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
|
| 134 |
+
#### unripe_apple
|
| 135 |
+
|
| 136 |
+

|
| 137 |
+
|
| 138 |
+
#### unripe_banana
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
|
| 142 |
+
#### unripe_mango
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
|
| 146 |
+
#### unripe_oranges
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
|
| 150 |
+
#### unripe_strawberry
|
| 151 |
+
|
| 152 |
+

|
config.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ViTForImageClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.0,
|
| 6 |
+
"encoder_stride": 16,
|
| 7 |
+
"hidden_act": "gelu",
|
| 8 |
+
"hidden_dropout_prob": 0.0,
|
| 9 |
+
"hidden_size": 768,
|
| 10 |
+
"id2label": {
|
| 11 |
+
"0": "Bellpepper_fresh",
|
| 12 |
+
"1": "Bellpepper_intermediate_fresh",
|
| 13 |
+
"10": "Potato_intermediate_fresh",
|
| 14 |
+
"11": "Potato_rotten",
|
| 15 |
+
"12": "Tomato_fresh",
|
| 16 |
+
"13": "Tomato_intermediate_fresh",
|
| 17 |
+
"14": "Tomato_rotten",
|
| 18 |
+
"15": "ripe_apple",
|
| 19 |
+
"16": "ripe_banana",
|
| 20 |
+
"17": "ripe_mango",
|
| 21 |
+
"18": "ripe_oranges",
|
| 22 |
+
"19": "ripe_strawberry",
|
| 23 |
+
"2": "Bellpepper_rotten",
|
| 24 |
+
"20": "rotten_apple",
|
| 25 |
+
"21": "rotten_banana",
|
| 26 |
+
"22": "rotten_mango",
|
| 27 |
+
"23": "rotten_oranges",
|
| 28 |
+
"24": "rotten_strawberry",
|
| 29 |
+
"25": "unripe_apple",
|
| 30 |
+
"26": "unripe_banana",
|
| 31 |
+
"27": "unripe_mango",
|
| 32 |
+
"28": "unripe_oranges",
|
| 33 |
+
"29": "unripe_strawberry",
|
| 34 |
+
"3": "Carrot_fresh",
|
| 35 |
+
"4": "Carrot_intermediate_fresh",
|
| 36 |
+
"5": "Carrot_rotten",
|
| 37 |
+
"6": "Cucumber_fresh",
|
| 38 |
+
"7": "Cucumber_intermediate_fresh",
|
| 39 |
+
"8": "Cucumber_rotten",
|
| 40 |
+
"9": "Potato_fresh"
|
| 41 |
+
},
|
| 42 |
+
"image_size": 224,
|
| 43 |
+
"initializer_range": 0.02,
|
| 44 |
+
"intermediate_size": 3072,
|
| 45 |
+
"label2id": {
|
| 46 |
+
"Bellpepper_fresh": "0",
|
| 47 |
+
"Bellpepper_intermediate_fresh": "1",
|
| 48 |
+
"Bellpepper_rotten": "2",
|
| 49 |
+
"Carrot_fresh": "3",
|
| 50 |
+
"Carrot_intermediate_fresh": "4",
|
| 51 |
+
"Carrot_rotten": "5",
|
| 52 |
+
"Cucumber_fresh": "6",
|
| 53 |
+
"Cucumber_intermediate_fresh": "7",
|
| 54 |
+
"Cucumber_rotten": "8",
|
| 55 |
+
"Potato_fresh": "9",
|
| 56 |
+
"Potato_intermediate_fresh": "10",
|
| 57 |
+
"Potato_rotten": "11",
|
| 58 |
+
"Tomato_fresh": "12",
|
| 59 |
+
"Tomato_intermediate_fresh": "13",
|
| 60 |
+
"Tomato_rotten": "14",
|
| 61 |
+
"ripe_apple": "15",
|
| 62 |
+
"ripe_banana": "16",
|
| 63 |
+
"ripe_mango": "17",
|
| 64 |
+
"ripe_oranges": "18",
|
| 65 |
+
"ripe_strawberry": "19",
|
| 66 |
+
"rotten_apple": "20",
|
| 67 |
+
"rotten_banana": "21",
|
| 68 |
+
"rotten_mango": "22",
|
| 69 |
+
"rotten_oranges": "23",
|
| 70 |
+
"rotten_strawberry": "24",
|
| 71 |
+
"unripe_apple": "25",
|
| 72 |
+
"unripe_banana": "26",
|
| 73 |
+
"unripe_mango": "27",
|
| 74 |
+
"unripe_oranges": "28",
|
| 75 |
+
"unripe_strawberry": "29"
|
| 76 |
+
},
|
| 77 |
+
"layer_norm_eps": 1e-12,
|
| 78 |
+
"model_type": "vit",
|
| 79 |
+
"num_attention_heads": 12,
|
| 80 |
+
"num_channels": 3,
|
| 81 |
+
"num_hidden_layers": 12,
|
| 82 |
+
"patch_size": 16,
|
| 83 |
+
"pooler_act": "tanh",
|
| 84 |
+
"pooler_output_size": 768,
|
| 85 |
+
"problem_type": "single_label_classification",
|
| 86 |
+
"qkv_bias": true,
|
| 87 |
+
"torch_dtype": "float32",
|
| 88 |
+
"transformers_version": "4.52.3"
|
| 89 |
+
}
|
images/Bellpepper_fresh.jpeg
ADDED
|
Git LFS Details
|
images/Bellpepper_intermediate_fresh.png
ADDED
|
Git LFS Details
|
images/Bellpepper_rotten.jpg
ADDED
|
Git LFS Details
|
images/Carrot_fresh.jpeg
ADDED
|
Git LFS Details
|
images/Carrot_intermediate_fresh.jpg
ADDED
|
Git LFS Details
|
images/Carrot_rotten.jpeg
ADDED
|
Git LFS Details
|
images/Cucumber_fresh.jpg
ADDED
|
Git LFS Details
|
images/Cucumber_intermediate_fresh.jpeg
ADDED
|
Git LFS Details
|
images/Cucumber_rotten.jpg
ADDED
|
Git LFS Details
|
images/Potato_fresh.jpeg
ADDED
|
Git LFS Details
|
images/Potato_intermediate_fresh.png
ADDED
|
Git LFS Details
|
images/Potato_rotten.jpg
ADDED
|
Git LFS Details
|
images/Tomato_fresh.jpg
ADDED
|
Git LFS Details
|
images/Tomato_intermediate_fresh.jpeg
ADDED
|
Git LFS Details
|
images/Tomato_rotten.jpeg
ADDED
|
Git LFS Details
|
images/ripe_apple.jpg
ADDED
|
Git LFS Details
|
images/ripe_banana.jpg
ADDED
|
Git LFS Details
|
images/ripe_mango.jpg
ADDED
|
Git LFS Details
|
images/ripe_oranges.png
ADDED
|
Git LFS Details
|
images/ripe_strawberry.jpg
ADDED
|
Git LFS Details
|
images/rotten_apple.webp
ADDED
|
Git LFS Details
|
images/rotten_banana.png
ADDED
|
Git LFS Details
|
images/rotten_mango.jpg
ADDED
|
Git LFS Details
|
images/rotten_oranges.png
ADDED
|
Git LFS Details
|
images/rotten_strawberry.jpg
ADDED
|
Git LFS Details
|
images/unripe_apple.jpg
ADDED
|
Git LFS Details
|
images/unripe_banana.jpg
ADDED
|
Git LFS Details
|
images/unripe_mango.jpg
ADDED
|
Git LFS Details
|
images/unripe_oranges.jpg
ADDED
|
Git LFS Details
|
images/unripe_strawberry.jpg
ADDED
|
Git LFS Details
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb3e60bd396ce9a0d19f332aef14c52930239f73d7301dc8befc05ee20299f04
|
| 3 |
+
size 343310104
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "ViTFeatureExtractor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"resample": 2,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"height": 224,
|
| 21 |
+
"width": 224
|
| 22 |
+
}
|
| 23 |
+
}
|
runs/events.out.tfevents.1749204106.ac2f9455b857.424.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5209de6d75d9314cd8346247671ccaa44c4af4b4600ce0e11271305b9bb8ab5e
|
| 3 |
+
size 9214
|