RohithN2004
commited on
Commit
·
de70908
1
Parent(s):
95aa976
commit files to HF hub
Browse files- .gitattributes +12 -0
- README.md +80 -0
- config.json +52 -0
- images/ripe_apple.jpg +3 -0
- images/ripe_mango.jpg +3 -0
- images/ripe_papaya.jpg +3 -0
- images/ripe_pomegranate.jpg +3 -0
- images/rotten_apple.jpg +3 -0
- images/rotten_mango.jpg +3 -0
- images/rotten_papaya.jpg +3 -0
- images/rotten_pomegranate.jpg +3 -0
- images/unripe_apple.jpg +3 -0
- images/unripe_mango.jpg +3 -0
- images/unripe_papaya.jpg +3 -0
- images/unripe_pomegranate.jpg +3 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- runs/events.out.tfevents.1718205181.1e872565af05.283.0 +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,15 @@ 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/ripe_apple.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
images/ripe_mango.jpg filter=lfs diff=lfs merge=lfs -text
|
38 |
+
images/ripe_papaya.jpg filter=lfs diff=lfs merge=lfs -text
|
39 |
+
images/ripe_pomegranate.jpg filter=lfs diff=lfs merge=lfs -text
|
40 |
+
images/rotten_apple.jpg filter=lfs diff=lfs merge=lfs -text
|
41 |
+
images/rotten_mango.jpg filter=lfs diff=lfs merge=lfs -text
|
42 |
+
images/rotten_papaya.jpg filter=lfs diff=lfs merge=lfs -text
|
43 |
+
images/rotten_pomegranate.jpg filter=lfs diff=lfs merge=lfs -text
|
44 |
+
images/unripe_apple.jpg filter=lfs diff=lfs merge=lfs -text
|
45 |
+
images/unripe_mango.jpg filter=lfs diff=lfs merge=lfs -text
|
46 |
+
images/unripe_papaya.jpg filter=lfs diff=lfs merge=lfs -text
|
47 |
+
images/unripe_pomegranate.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- image-classification
|
4 |
+
- pytorch
|
5 |
+
- huggingpics
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
|
9 |
+
model-index:
|
10 |
+
- name: fruit-ripeness
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Image Classification
|
14 |
+
type: image-classification
|
15 |
+
metrics:
|
16 |
+
- name: Accuracy
|
17 |
+
type: accuracy
|
18 |
+
value: 0.28518518805503845
|
19 |
+
---
|
20 |
+
|
21 |
+
# fruit-ripeness
|
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 |
+
#### ripe apple
|
35 |
+
|
36 |
+
![ripe apple](images/ripe_apple.jpg)
|
37 |
+
|
38 |
+
#### ripe mango
|
39 |
+
|
40 |
+
![ripe mango](images/ripe_mango.jpg)
|
41 |
+
|
42 |
+
#### ripe papaya
|
43 |
+
|
44 |
+
![ripe papaya](images/ripe_papaya.jpg)
|
45 |
+
|
46 |
+
#### ripe pomegranate
|
47 |
+
|
48 |
+
![ripe pomegranate](images/ripe_pomegranate.jpg)
|
49 |
+
|
50 |
+
#### rotten apple
|
51 |
+
|
52 |
+
![rotten apple](images/rotten_apple.jpg)
|
53 |
+
|
54 |
+
#### rotten mango
|
55 |
+
|
56 |
+
![rotten mango](images/rotten_mango.jpg)
|
57 |
+
|
58 |
+
#### rotten papaya
|
59 |
+
|
60 |
+
![rotten papaya](images/rotten_papaya.jpg)
|
61 |
+
|
62 |
+
#### rotten pomegranate
|
63 |
+
|
64 |
+
![rotten pomegranate](images/rotten_pomegranate.jpg)
|
65 |
+
|
66 |
+
#### unripe apple
|
67 |
+
|
68 |
+
![unripe apple](images/unripe_apple.jpg)
|
69 |
+
|
70 |
+
#### unripe mango
|
71 |
+
|
72 |
+
![unripe mango](images/unripe_mango.jpg)
|
73 |
+
|
74 |
+
#### unripe papaya
|
75 |
+
|
76 |
+
![unripe papaya](images/unripe_papaya.jpg)
|
77 |
+
|
78 |
+
#### unripe pomegranate
|
79 |
+
|
80 |
+
![unripe pomegranate](images/unripe_pomegranate.jpg)
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "ripe apple",
|
13 |
+
"1": "ripe mango",
|
14 |
+
"10": "unripe papaya",
|
15 |
+
"11": "unripe pomegranate",
|
16 |
+
"2": "ripe papaya",
|
17 |
+
"3": "ripe pomegranate",
|
18 |
+
"4": "rotten apple",
|
19 |
+
"5": "rotten mango",
|
20 |
+
"6": "rotten papaya",
|
21 |
+
"7": "rotten pomegranate",
|
22 |
+
"8": "unripe apple",
|
23 |
+
"9": "unripe mango"
|
24 |
+
},
|
25 |
+
"image_size": 224,
|
26 |
+
"initializer_range": 0.02,
|
27 |
+
"intermediate_size": 3072,
|
28 |
+
"label2id": {
|
29 |
+
"ripe apple": "0",
|
30 |
+
"ripe mango": "1",
|
31 |
+
"ripe papaya": "2",
|
32 |
+
"ripe pomegranate": "3",
|
33 |
+
"rotten apple": "4",
|
34 |
+
"rotten mango": "5",
|
35 |
+
"rotten papaya": "6",
|
36 |
+
"rotten pomegranate": "7",
|
37 |
+
"unripe apple": "8",
|
38 |
+
"unripe mango": "9",
|
39 |
+
"unripe papaya": "10",
|
40 |
+
"unripe pomegranate": "11"
|
41 |
+
},
|
42 |
+
"layer_norm_eps": 1e-12,
|
43 |
+
"model_type": "vit",
|
44 |
+
"num_attention_heads": 12,
|
45 |
+
"num_channels": 3,
|
46 |
+
"num_hidden_layers": 12,
|
47 |
+
"patch_size": 16,
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"qkv_bias": true,
|
50 |
+
"torch_dtype": "float32",
|
51 |
+
"transformers_version": "4.41.2"
|
52 |
+
}
|
images/ripe_apple.jpg
ADDED
Git LFS Details
|
images/ripe_mango.jpg
ADDED
Git LFS Details
|
images/ripe_papaya.jpg
ADDED
Git LFS Details
|
images/ripe_pomegranate.jpg
ADDED
Git LFS Details
|
images/rotten_apple.jpg
ADDED
Git LFS Details
|
images/rotten_mango.jpg
ADDED
Git LFS Details
|
images/rotten_papaya.jpg
ADDED
Git LFS Details
|
images/rotten_pomegranate.jpg
ADDED
Git LFS Details
|
images/unripe_apple.jpg
ADDED
Git LFS Details
|
images/unripe_mango.jpg
ADDED
Git LFS Details
|
images/unripe_papaya.jpg
ADDED
Git LFS Details
|
images/unripe_pomegranate.jpg
ADDED
Git LFS Details
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af84aaa0493228be59b7b5c11e5f46c2fe5525d7a7610c14785eef2fa76da7f9
|
3 |
+
size 343254736
|
preprocessor_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_rescale",
|
8 |
+
"rescale_factor",
|
9 |
+
"do_normalize",
|
10 |
+
"image_mean",
|
11 |
+
"image_std",
|
12 |
+
"return_tensors",
|
13 |
+
"data_format",
|
14 |
+
"input_data_format"
|
15 |
+
],
|
16 |
+
"do_normalize": true,
|
17 |
+
"do_rescale": true,
|
18 |
+
"do_resize": true,
|
19 |
+
"image_mean": [
|
20 |
+
0.5,
|
21 |
+
0.5,
|
22 |
+
0.5
|
23 |
+
],
|
24 |
+
"image_processor_type": "ViTFeatureExtractor",
|
25 |
+
"image_std": [
|
26 |
+
0.5,
|
27 |
+
0.5,
|
28 |
+
0.5
|
29 |
+
],
|
30 |
+
"resample": 2,
|
31 |
+
"rescale_factor": 0.00392156862745098,
|
32 |
+
"size": {
|
33 |
+
"height": 224,
|
34 |
+
"width": 224
|
35 |
+
}
|
36 |
+
}
|
runs/events.out.tfevents.1718205181.1e872565af05.283.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:050a1714c8934d872a489ae8dd181125c8ac38eb35992928b8e883cf94d240d4
|
3 |
+
size 2332
|