RohithN2004 commited on
Commit
de70908
·
1 Parent(s): 95aa976

commit files to HF hub

Browse files
.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

  • SHA256: 1a1380c3dd024971d2bf2c135c5bd1eeb4b68b37984b120e212640312e15d9ec
  • Pointer size: 130 Bytes
  • Size of remote file: 25.5 kB
images/ripe_mango.jpg ADDED

Git LFS Details

  • SHA256: 99fe8903c10c50794c3db91e08fe2f3c1672c98cc0cac6913ff0de0b65fa0ce9
  • Pointer size: 130 Bytes
  • Size of remote file: 48.4 kB
images/ripe_papaya.jpg ADDED

Git LFS Details

  • SHA256: f0d3f6e8cd0ee711d6c3b304614080b9b34843629a579810fa64ecb2b3b573a0
  • Pointer size: 130 Bytes
  • Size of remote file: 35.7 kB
images/ripe_pomegranate.jpg ADDED

Git LFS Details

  • SHA256: 0db51f6932aa06205256bbe174bee92a99e95f46ba2efb1f38b41162c8f3b267
  • Pointer size: 130 Bytes
  • Size of remote file: 30.3 kB
images/rotten_apple.jpg ADDED

Git LFS Details

  • SHA256: 5763812006cea8c95f71a63aeee1ef9cc0add253a01e6bb5e2a0b80c14c5f00d
  • Pointer size: 130 Bytes
  • Size of remote file: 31 kB
images/rotten_mango.jpg ADDED

Git LFS Details

  • SHA256: 83627d0ae78596221bc57717ccd4e6cfce79c3e858f4c65124f33b50275c6cab
  • Pointer size: 130 Bytes
  • Size of remote file: 43.1 kB
images/rotten_papaya.jpg ADDED

Git LFS Details

  • SHA256: c4a97475e9276fd54a42daab795fe0ce97419a5b7f0699ddf6b7bf9702e9746b
  • Pointer size: 130 Bytes
  • Size of remote file: 29.8 kB
images/rotten_pomegranate.jpg ADDED

Git LFS Details

  • SHA256: 9a7681bee719b58b2a38bcd3eb9deae3cd424781d5c07e9bafeb059171a19002
  • Pointer size: 129 Bytes
  • Size of remote file: 7.95 kB
images/unripe_apple.jpg ADDED

Git LFS Details

  • SHA256: 42c4c2f2e0e95cc47cfe38dfd4878949ef3f8b6bf9c131d63d879c24fba00a06
  • Pointer size: 130 Bytes
  • Size of remote file: 20.1 kB
images/unripe_mango.jpg ADDED

Git LFS Details

  • SHA256: 80748e86ee998090ed60a65f3a57197e14304c06f7a1cc6a9f968d79d81e31bd
  • Pointer size: 130 Bytes
  • Size of remote file: 21 kB
images/unripe_papaya.jpg ADDED

Git LFS Details

  • SHA256: 8057d1ea1d4a0060fc6b9ce42dab844e0afc0afe74d6158ba9a0b78b7455fa07
  • Pointer size: 130 Bytes
  • Size of remote file: 48.3 kB
images/unripe_pomegranate.jpg ADDED

Git LFS Details

  • SHA256: 1929f025205d1ed65cd97bea47b57aea1bb30add24e4738d4786cafef0a38e33
  • Pointer size: 130 Bytes
  • Size of remote file: 55.9 kB
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