aiforsocialbenefit commited on
Commit
f1c51b8
1 Parent(s): eded08b

commit files to HF hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,8 @@ 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/Cheeseburger.jpg filter=lfs diff=lfs merge=lfs -text
37
+ images/Hamburger.jpg filter=lfs diff=lfs merge=lfs -text
38
+ images/Hot_dog.jpg filter=lfs diff=lfs merge=lfs -text
39
+ images/Peanuts.jpg filter=lfs diff=lfs merge=lfs -text
40
+ images/Popcorn.jpg filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - image-classification
4
+ - pytorch
5
+ - huggingpics
6
+ metrics:
7
+ - accuracy
8
+
9
+ model-index:
10
+ - name: gk-food-classifier
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ metrics:
16
+ - name: Accuracy
17
+ type: accuracy
18
+ value: 0.7410714030265808
19
+ ---
20
+
21
+ # gk-food-classifier
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
+ #### Cheeseburger
35
+
36
+ ![Cheeseburger](images/Cheeseburger.jpg)
37
+
38
+ #### Hamburger
39
+
40
+ ![Hamburger](images/Hamburger.jpg)
41
+
42
+ #### Hot dog
43
+
44
+ ![Hot dog](images/Hot_dog.jpg)
45
+
46
+ #### Peanuts
47
+
48
+ ![Peanuts](images/Peanuts.jpg)
49
+
50
+ #### Popcorn
51
+
52
+ ![Popcorn](images/Popcorn.jpg)
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "Cheeseburger",
13
+ "1": "Hamburger",
14
+ "2": "Hot dog",
15
+ "3": "Peanuts",
16
+ "4": "Popcorn"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "Cheeseburger": "0",
23
+ "Hamburger": "1",
24
+ "Hot dog": "2",
25
+ "Peanuts": "3",
26
+ "Popcorn": "4"
27
+ },
28
+ "layer_norm_eps": 1e-12,
29
+ "model_type": "vit",
30
+ "num_attention_heads": 12,
31
+ "num_channels": 3,
32
+ "num_hidden_layers": 12,
33
+ "patch_size": 16,
34
+ "problem_type": "single_label_classification",
35
+ "qkv_bias": true,
36
+ "torch_dtype": "float32",
37
+ "transformers_version": "4.42.4"
38
+ }
images/Cheeseburger.jpg ADDED

Git LFS Details

  • SHA256: c221e0fd5eeb49de1bf1834a4ee437b1477ef3c27c82a86eede80fe5a75f96c1
  • Pointer size: 130 Bytes
  • Size of remote file: 29.5 kB
images/Hamburger.jpg ADDED

Git LFS Details

  • SHA256: fea14ff20098352c04ee4b01ead9139a90b0ee60f7f0f77bfeba8de1138996cd
  • Pointer size: 130 Bytes
  • Size of remote file: 25.3 kB
images/Hot_dog.jpg ADDED

Git LFS Details

  • SHA256: e3e27494a617bc79218ccab4fd1e5d5e9a83e94b454dc385ec8ea8f2eae1aca2
  • Pointer size: 130 Bytes
  • Size of remote file: 18.3 kB
images/Peanuts.jpg ADDED

Git LFS Details

  • SHA256: a0e9f873ec254bd513cb5a16185955d0579c57fbdbfd14eee5b636ebedfa7642
  • Pointer size: 130 Bytes
  • Size of remote file: 17.9 kB
images/Popcorn.jpg ADDED

Git LFS Details

  • SHA256: 87eb3ca7416a9601255d51355d2c612cf46175c3bbedbb685f005cdcf78ba8b0
  • Pointer size: 130 Bytes
  • Size of remote file: 26.9 kB
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1ac3fd1a688282b71c034c089201493cc84a99a08492c21b2e33339ba7410bb
3
+ size 343233204
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTFeatureExtractor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
runs/events.out.tfevents.1722875921.80579bdf5010.422.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f519812cd7c3299956180cde671530774eb1ed9dc248c17020bd47ab9869c57
3
+ size 1492