ajanco
commited on
Commit
·
9e3c26f
1
Parent(s):
3818922
commit files to HF hub
Browse files- .gitattributes +32 -0
- README.md +156 -0
- config.json +92 -0
- images/airheads.jpg +3 -0
- images/candy_corn.jpg +3 -0
- images/caramel.jpg +3 -0
- images/chips.jpg +3 -0
- images/chocolate.jpg +3 -0
- images/fruit.jpg +3 -0
- images/gum.jpg +3 -0
- images/haribo.jpg +3 -0
- images/jelly_beans.jpg +3 -0
- images/lollipop.jpg +3 -0
- images/m&ms.jpg +3 -0
- images/marshmallow.jpg +3 -0
- images/mentos.jpg +3 -0
- images/mint.jpg +3 -0
- images/nerds.jpg +3 -0
- images/peeps.jpg +3 -0
- images/pez.jpg +3 -0
- images/popcorn.jpg +3 -0
- images/pretzel.jpg +3 -0
- images/reeses.jpg +3 -0
- images/seeds.jpg +3 -0
- images/skittles.jpg +3 -0
- images/snickers.jpg +3 -0
- images/soda.jpg +3 -0
- images/sour.jpg +3 -0
- images/swedish_fish.jpg +3 -0
- images/taffy.jpg +3 -0
- images/tootsie.jpg +3 -0
- images/twix.jpg +3 -0
- images/twizzlers.jpg +3 -0
- images/warheads.jpg +3 -0
- images/whoppers.jpg +3 -0
- preprocessor_config.json +17 -0
- pytorch_model.bin +3 -0
- runs/events.out.tfevents.1658943513.apjanco.285701.0 +3 -0
.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 |
+

|
| 33 |
+
|
| 34 |
+
#### candy corn
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
|
| 38 |
+
#### caramel
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
|
| 42 |
+
#### chips
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
|
| 46 |
+
#### chocolate
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
|
| 50 |
+
#### fruit
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
|
| 54 |
+
#### gum
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
|
| 58 |
+
#### haribo
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
|
| 62 |
+
#### jelly beans
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
|
| 66 |
+
#### lollipop
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
|
| 70 |
+
#### m&ms
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
|
| 74 |
+
#### marshmallow
|
| 75 |
+
|
| 76 |
+

|
| 77 |
+
|
| 78 |
+
#### mentos
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
|
| 82 |
+
#### mint
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
|
| 86 |
+
#### nerds
|
| 87 |
+
|
| 88 |
+

|
| 89 |
+
|
| 90 |
+
#### peeps
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
|
| 94 |
+
#### pez
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
|
| 98 |
+
#### popcorn
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
|
| 102 |
+
#### pretzel
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
|
| 106 |
+
#### reeses
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
|
| 110 |
+
#### seeds
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
|
| 114 |
+
#### skittles
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
|
| 118 |
+
#### snickers
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
|
| 122 |
+
#### soda
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
|
| 126 |
+
#### sour
|
| 127 |
+
|
| 128 |
+

|
| 129 |
+
|
| 130 |
+
#### swedish fish
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
|
| 134 |
+
#### taffy
|
| 135 |
+
|
| 136 |
+

|
| 137 |
+
|
| 138 |
+
#### tootsie
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
|
| 142 |
+
#### twix
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
|
| 146 |
+
#### twizzlers
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
|
| 150 |
+
#### warheads
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
|
| 154 |
+
#### whoppers
|
| 155 |
+
|
| 156 |
+

|
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
|
images/candy_corn.jpg
ADDED
|
Git LFS Details
|
images/caramel.jpg
ADDED
|
Git LFS Details
|
images/chips.jpg
ADDED
|
Git LFS Details
|
images/chocolate.jpg
ADDED
|
Git LFS Details
|
images/fruit.jpg
ADDED
|
Git LFS Details
|
images/gum.jpg
ADDED
|
Git LFS Details
|
images/haribo.jpg
ADDED
|
Git LFS Details
|
images/jelly_beans.jpg
ADDED
|
Git LFS Details
|
images/lollipop.jpg
ADDED
|
Git LFS Details
|
images/m&ms.jpg
ADDED
|
Git LFS Details
|
images/marshmallow.jpg
ADDED
|
Git LFS Details
|
images/mentos.jpg
ADDED
|
Git LFS Details
|
images/mint.jpg
ADDED
|
Git LFS Details
|
images/nerds.jpg
ADDED
|
Git LFS Details
|
images/peeps.jpg
ADDED
|
Git LFS Details
|
images/pez.jpg
ADDED
|
Git LFS Details
|
images/popcorn.jpg
ADDED
|
Git LFS Details
|
images/pretzel.jpg
ADDED
|
Git LFS Details
|
images/reeses.jpg
ADDED
|
Git LFS Details
|
images/seeds.jpg
ADDED
|
Git LFS Details
|
images/skittles.jpg
ADDED
|
Git LFS Details
|
images/snickers.jpg
ADDED
|
Git LFS Details
|
images/soda.jpg
ADDED
|
Git LFS Details
|
images/sour.jpg
ADDED
|
Git LFS Details
|
images/swedish_fish.jpg
ADDED
|
Git LFS Details
|
images/taffy.jpg
ADDED
|
Git LFS Details
|
images/tootsie.jpg
ADDED
|
Git LFS Details
|
images/twix.jpg
ADDED
|
Git LFS Details
|
images/twizzlers.jpg
ADDED
|
Git LFS Details
|
images/warheads.jpg
ADDED
|
Git LFS Details
|
images/whoppers.jpg
ADDED
|
Git LFS Details
|
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
|