ajanco commited on
Commit
9e3c26f
1 Parent(s): 3818922

commit files to HF hub

Browse files
.gitattributes CHANGED
@@ -29,3 +29,35 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
32
+ images/airheads.jpg filter=lfs diff=lfs merge=lfs -text
33
+ images/candy_corn.jpg filter=lfs diff=lfs merge=lfs -text
34
+ images/caramel.jpg filter=lfs diff=lfs merge=lfs -text
35
+ images/chips.jpg filter=lfs diff=lfs merge=lfs -text
36
+ images/chocolate.jpg filter=lfs diff=lfs merge=lfs -text
37
+ images/fruit.jpg filter=lfs diff=lfs merge=lfs -text
38
+ images/gum.jpg filter=lfs diff=lfs merge=lfs -text
39
+ images/haribo.jpg filter=lfs diff=lfs merge=lfs -text
40
+ images/jelly_beans.jpg filter=lfs diff=lfs merge=lfs -text
41
+ images/lollipop.jpg filter=lfs diff=lfs merge=lfs -text
42
+ images/m&ms.jpg filter=lfs diff=lfs merge=lfs -text
43
+ images/marshmallow.jpg filter=lfs diff=lfs merge=lfs -text
44
+ images/mentos.jpg filter=lfs diff=lfs merge=lfs -text
45
+ images/mint.jpg filter=lfs diff=lfs merge=lfs -text
46
+ images/nerds.jpg filter=lfs diff=lfs merge=lfs -text
47
+ images/peeps.jpg filter=lfs diff=lfs merge=lfs -text
48
+ images/pez.jpg filter=lfs diff=lfs merge=lfs -text
49
+ images/popcorn.jpg filter=lfs diff=lfs merge=lfs -text
50
+ images/pretzel.jpg filter=lfs diff=lfs merge=lfs -text
51
+ images/reeses.jpg filter=lfs diff=lfs merge=lfs -text
52
+ images/seeds.jpg filter=lfs diff=lfs merge=lfs -text
53
+ images/skittles.jpg filter=lfs diff=lfs merge=lfs -text
54
+ images/snickers.jpg filter=lfs diff=lfs merge=lfs -text
55
+ images/soda.jpg filter=lfs diff=lfs merge=lfs -text
56
+ images/sour.jpg filter=lfs diff=lfs merge=lfs -text
57
+ images/swedish_fish.jpg filter=lfs diff=lfs merge=lfs -text
58
+ images/taffy.jpg filter=lfs diff=lfs merge=lfs -text
59
+ images/tootsie.jpg filter=lfs diff=lfs merge=lfs -text
60
+ images/twix.jpg filter=lfs diff=lfs merge=lfs -text
61
+ images/twizzlers.jpg filter=lfs diff=lfs merge=lfs -text
62
+ images/warheads.jpg filter=lfs diff=lfs merge=lfs -text
63
+ images/whoppers.jpg filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - image-classification
4
+ - pytorch
5
+ - huggingpics
6
+ metrics:
7
+ - accuracy
8
+
9
+ model-index:
10
+ - name: candy-first
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ metrics:
16
+ - name: Accuracy
17
+ type: accuracy
18
+ value: 0.7436399459838867
19
+ ---
20
+
21
+ # candy-first
22
+
23
+
24
+ An initial attempt to identify candy in images.
25
+
26
+
27
+ ## Example Images
28
+
29
+
30
+ #### airheads
31
+
32
+ ![airheads](images/airheads.jpg)
33
+
34
+ #### candy corn
35
+
36
+ ![candy corn](images/candy_corn.jpg)
37
+
38
+ #### caramel
39
+
40
+ ![caramel](images/caramel.jpg)
41
+
42
+ #### chips
43
+
44
+ ![chips](images/chips.jpg)
45
+
46
+ #### chocolate
47
+
48
+ ![chocolate](images/chocolate.jpg)
49
+
50
+ #### fruit
51
+
52
+ ![fruit](images/fruit.jpg)
53
+
54
+ #### gum
55
+
56
+ ![gum](images/gum.jpg)
57
+
58
+ #### haribo
59
+
60
+ ![haribo](images/haribo.jpg)
61
+
62
+ #### jelly beans
63
+
64
+ ![jelly beans](images/jelly_beans.jpg)
65
+
66
+ #### lollipop
67
+
68
+ ![lollipop](images/lollipop.jpg)
69
+
70
+ #### m&ms
71
+
72
+ ![m&ms](images/m&ms.jpg)
73
+
74
+ #### marshmallow
75
+
76
+ ![marshmallow](images/marshmallow.jpg)
77
+
78
+ #### mentos
79
+
80
+ ![mentos](images/mentos.jpg)
81
+
82
+ #### mint
83
+
84
+ ![mint](images/mint.jpg)
85
+
86
+ #### nerds
87
+
88
+ ![nerds](images/nerds.jpg)
89
+
90
+ #### peeps
91
+
92
+ ![peeps](images/peeps.jpg)
93
+
94
+ #### pez
95
+
96
+ ![pez](images/pez.jpg)
97
+
98
+ #### popcorn
99
+
100
+ ![popcorn](images/popcorn.jpg)
101
+
102
+ #### pretzel
103
+
104
+ ![pretzel](images/pretzel.jpg)
105
+
106
+ #### reeses
107
+
108
+ ![reeses](images/reeses.jpg)
109
+
110
+ #### seeds
111
+
112
+ ![seeds](images/seeds.jpg)
113
+
114
+ #### skittles
115
+
116
+ ![skittles](images/skittles.jpg)
117
+
118
+ #### snickers
119
+
120
+ ![snickers](images/snickers.jpg)
121
+
122
+ #### soda
123
+
124
+ ![soda](images/soda.jpg)
125
+
126
+ #### sour
127
+
128
+ ![sour](images/sour.jpg)
129
+
130
+ #### swedish fish
131
+
132
+ ![swedish fish](images/swedish_fish.jpg)
133
+
134
+ #### taffy
135
+
136
+ ![taffy](images/taffy.jpg)
137
+
138
+ #### tootsie
139
+
140
+ ![tootsie](images/tootsie.jpg)
141
+
142
+ #### twix
143
+
144
+ ![twix](images/twix.jpg)
145
+
146
+ #### twizzlers
147
+
148
+ ![twizzlers](images/twizzlers.jpg)
149
+
150
+ #### warheads
151
+
152
+ ![warheads](images/warheads.jpg)
153
+
154
+ #### whoppers
155
+
156
+ ![whoppers](images/whoppers.jpg)
config.json ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "airheads",
13
+ "1": "candy corn",
14
+ "10": "m&ms",
15
+ "11": "marshmallow",
16
+ "12": "mentos",
17
+ "13": "mint",
18
+ "14": "nerds",
19
+ "15": "peeps",
20
+ "16": "pez",
21
+ "17": "popcorn",
22
+ "18": "pretzel",
23
+ "19": "reeses",
24
+ "2": "caramel",
25
+ "20": "seeds",
26
+ "21": "skittles",
27
+ "22": "snickers",
28
+ "23": "soda",
29
+ "24": "sour",
30
+ "25": "swedish fish",
31
+ "26": "taffy",
32
+ "27": "tootsie",
33
+ "28": "twix",
34
+ "29": "twizzlers",
35
+ "3": "chips",
36
+ "30": "warheads",
37
+ "31": "whoppers",
38
+ "4": "chocolate",
39
+ "5": "fruit",
40
+ "6": "gum",
41
+ "7": "haribo",
42
+ "8": "jelly beans",
43
+ "9": "lollipop"
44
+ },
45
+ "image_size": 224,
46
+ "initializer_range": 0.02,
47
+ "intermediate_size": 3072,
48
+ "label2id": {
49
+ "airheads": "0",
50
+ "candy corn": "1",
51
+ "caramel": "2",
52
+ "chips": "3",
53
+ "chocolate": "4",
54
+ "fruit": "5",
55
+ "gum": "6",
56
+ "haribo": "7",
57
+ "jelly beans": "8",
58
+ "lollipop": "9",
59
+ "m&ms": "10",
60
+ "marshmallow": "11",
61
+ "mentos": "12",
62
+ "mint": "13",
63
+ "nerds": "14",
64
+ "peeps": "15",
65
+ "pez": "16",
66
+ "popcorn": "17",
67
+ "pretzel": "18",
68
+ "reeses": "19",
69
+ "seeds": "20",
70
+ "skittles": "21",
71
+ "snickers": "22",
72
+ "soda": "23",
73
+ "sour": "24",
74
+ "swedish fish": "25",
75
+ "taffy": "26",
76
+ "tootsie": "27",
77
+ "twix": "28",
78
+ "twizzlers": "29",
79
+ "warheads": "30",
80
+ "whoppers": "31"
81
+ },
82
+ "layer_norm_eps": 1e-12,
83
+ "model_type": "vit",
84
+ "num_attention_heads": 12,
85
+ "num_channels": 3,
86
+ "num_hidden_layers": 12,
87
+ "patch_size": 16,
88
+ "problem_type": "single_label_classification",
89
+ "qkv_bias": true,
90
+ "torch_dtype": "float32",
91
+ "transformers_version": "4.20.1"
92
+ }
images/airheads.jpg ADDED

Git LFS Details

  • SHA256: 8913d6422291f72c5304ce605ac4248b2a34fd73c1c5f3022e4bafc0d951163e
  • Pointer size: 131 Bytes
  • Size of remote file: 119 kB
images/candy_corn.jpg ADDED

Git LFS Details

  • SHA256: 86f2d8c0ae34187ef831684f5c97000daf5c6d0ec256345454bbb16bfa48c61e
  • Pointer size: 130 Bytes
  • Size of remote file: 45.7 kB
images/caramel.jpg ADDED

Git LFS Details

  • SHA256: ee0870f5f8b65b4881c8de277558c9edd43d9093aeff7c3439d04a308bca4cb9
  • Pointer size: 130 Bytes
  • Size of remote file: 85.7 kB
images/chips.jpg ADDED

Git LFS Details

  • SHA256: 1880fe0d02e37356d6a20ced6614a78a26404a32d014d09c490a20e70b46b5d5
  • Pointer size: 130 Bytes
  • Size of remote file: 21.9 kB
images/chocolate.jpg ADDED

Git LFS Details

  • SHA256: 499603fe3fae5608c401175cfff11488e9bb4d2f0302400a7157d81d58c61c82
  • Pointer size: 130 Bytes
  • Size of remote file: 21 kB
images/fruit.jpg ADDED

Git LFS Details

  • SHA256: 78e5d0bd142e32bab89c19a8370dbd8c799fbd23a6b40888743b7fb4fdb4cce2
  • Pointer size: 129 Bytes
  • Size of remote file: 6.8 kB
images/gum.jpg ADDED

Git LFS Details

  • SHA256: 5f9ec128744deaf5b7abb4fad6d6224a3d31c116ed788856392f7eff77272d4d
  • Pointer size: 130 Bytes
  • Size of remote file: 20.5 kB
images/haribo.jpg ADDED

Git LFS Details

  • SHA256: 290fc13910cefcd32fb27aa12a5eb9aa934fbf8e3f7bc3d95a5fc4fc0e5c8c10
  • Pointer size: 130 Bytes
  • Size of remote file: 28.3 kB
images/jelly_beans.jpg ADDED

Git LFS Details

  • SHA256: fa488b1ddfcb1999ad4715938da9997618f52bbaff4fc5f746eea58c38a1afd9
  • Pointer size: 130 Bytes
  • Size of remote file: 65.8 kB
images/lollipop.jpg ADDED

Git LFS Details

  • SHA256: fc2fc86a65bb80779d040baf6d2b269ee307938f612369c68b8a9c4c52ad6317
  • Pointer size: 130 Bytes
  • Size of remote file: 48.2 kB
images/m&ms.jpg ADDED

Git LFS Details

  • SHA256: dc3ed45e305250a06e31aa2e8f95ee1b36cc83f58564df56be8c51ee0d2d2026
  • Pointer size: 130 Bytes
  • Size of remote file: 28.4 kB
images/marshmallow.jpg ADDED

Git LFS Details

  • SHA256: 77cc50eeb56ceb2a1ea7c3aa6872486f5c4524dd9caac4150ce20748f95bbc94
  • Pointer size: 130 Bytes
  • Size of remote file: 56.4 kB
images/mentos.jpg ADDED

Git LFS Details

  • SHA256: 74f6ef356028f7d285f821b3001b3839207bf7f227ebf0488252d57075c5a60d
  • Pointer size: 130 Bytes
  • Size of remote file: 23.3 kB
images/mint.jpg ADDED

Git LFS Details

  • SHA256: cdc9c84e37a07f3a936eacd9df31a6898f47dc7abbc04b0d4b58ed17882c3ce6
  • Pointer size: 129 Bytes
  • Size of remote file: 8.63 kB
images/nerds.jpg ADDED

Git LFS Details

  • SHA256: 4d8dab242b38d567ac58109afd53ccc0e3d35b0795a398cf9fa178cafa90b440
  • Pointer size: 130 Bytes
  • Size of remote file: 21.9 kB
images/peeps.jpg ADDED

Git LFS Details

  • SHA256: b19e5a5694fd3467df341f06e7555efc8a799bb2981522544206813e3586e3b5
  • Pointer size: 130 Bytes
  • Size of remote file: 27.5 kB
images/pez.jpg ADDED

Git LFS Details

  • SHA256: 35fd624410f32058a0e116ac9c787809b3661baacf5df46a8681b46fff973a7e
  • Pointer size: 130 Bytes
  • Size of remote file: 61.5 kB
images/popcorn.jpg ADDED

Git LFS Details

  • SHA256: c0bb24fd1395440d75faf8217debd1be7331081e272329f3a82e5f16bff6809a
  • Pointer size: 129 Bytes
  • Size of remote file: 6.81 kB
images/pretzel.jpg ADDED

Git LFS Details

  • SHA256: 0c67756dd9c203149ec214a9ccb9cbc17b2f0953ce42c56375da04560b6eb507
  • Pointer size: 130 Bytes
  • Size of remote file: 29.8 kB
images/reeses.jpg ADDED

Git LFS Details

  • SHA256: 7d79418ec2ae1a039c5553f24ebe911f77f8389c1547bd3ef4b6ec71e4896585
  • Pointer size: 131 Bytes
  • Size of remote file: 121 kB
images/seeds.jpg ADDED

Git LFS Details

  • SHA256: 1af6bb472d9b4bb1cfcf45884a140ba82c3f6734fd389ed07eb12cea60421b13
  • Pointer size: 130 Bytes
  • Size of remote file: 40.3 kB
images/skittles.jpg ADDED

Git LFS Details

  • SHA256: bb9371432ddf89a4f22df66c119a6a89c270ab511bc105d1b80f7bb3d1ac05d8
  • Pointer size: 130 Bytes
  • Size of remote file: 34.9 kB
images/snickers.jpg ADDED

Git LFS Details

  • SHA256: 42755bef7c318d6e0670082a4c8da38dcd25ce84deb4a4b8b950347c65ba9633
  • Pointer size: 130 Bytes
  • Size of remote file: 58.2 kB
images/soda.jpg ADDED

Git LFS Details

  • SHA256: 0ab64e148d4f7bfbd852fb06c57790332f950daf717842076a9cc4228ed931f8
  • Pointer size: 131 Bytes
  • Size of remote file: 135 kB
images/sour.jpg ADDED

Git LFS Details

  • SHA256: 624ae1f2f996d2f2746d998d74bb53c2175bde0eede3bb099cd074b6d1bc5bb3
  • Pointer size: 131 Bytes
  • Size of remote file: 106 kB
images/swedish_fish.jpg ADDED

Git LFS Details

  • SHA256: 94dd82187373346a30b86940588da025436b3cc217ec3336ba037e27903c3253
  • Pointer size: 130 Bytes
  • Size of remote file: 14.2 kB
images/taffy.jpg ADDED

Git LFS Details

  • SHA256: 7d941fb79339b473d067e1399dafbd246716743fd587280a5dd0413875887790
  • Pointer size: 129 Bytes
  • Size of remote file: 3.77 kB
images/tootsie.jpg ADDED

Git LFS Details

  • SHA256: cace5bcaf5ae7af3767f102ed27148cb4fd56e99c180092e510a84c64bf9b9f6
  • Pointer size: 129 Bytes
  • Size of remote file: 8.24 kB
images/twix.jpg ADDED

Git LFS Details

  • SHA256: 03d4447eb2f7e1e8e482d5be6a2dc360e232799b1816310a03e7b358eb37e3a9
  • Pointer size: 129 Bytes
  • Size of remote file: 9.88 kB
images/twizzlers.jpg ADDED

Git LFS Details

  • SHA256: fe293860230ac714b52b4cd71b88d1c967f6dc0c42516a05c80f227fe8f00d83
  • Pointer size: 130 Bytes
  • Size of remote file: 13 kB
images/warheads.jpg ADDED

Git LFS Details

  • SHA256: 053f830005777f7e32f1e31bcda8c94837e1a20990a216d7ce22e82495e5db3c
  • Pointer size: 129 Bytes
  • Size of remote file: 6.79 kB
images/whoppers.jpg ADDED

Git LFS Details

  • SHA256: ec96ff878c9352abad03c70478663fa40b46f42ff9d307c71fa4f9bc54c2eda0
  • Pointer size: 129 Bytes
  • Size of remote file: 6.39 kB
preprocessor_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_resize": true,
4
+ "feature_extractor_type": "ViTFeatureExtractor",
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_std": [
11
+ 0.5,
12
+ 0.5,
13
+ 0.5
14
+ ],
15
+ "resample": 2,
16
+ "size": 224
17
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf2f302b2d688b9ee2e565c4d06a16f3535cec58eb2ee09e4d552aa24722973d
3
+ size 343356401
runs/events.out.tfevents.1658943513.apjanco.285701.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60f927398bc66d4f363e85bd9fac2428b29bcc623b3980c7b40034b7d5783600
3
+ size 3493