nohilwan commited on
Commit
7d53982
1 Parent(s): 4e953f0

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/American_food.jpg filter=lfs diff=lfs merge=lfs -text
37
+ images/Chinese_food.jpg filter=lfs diff=lfs merge=lfs -text
38
+ images/European_food.jpg filter=lfs diff=lfs merge=lfs -text
39
+ images/Japanese_food.jpg filter=lfs diff=lfs merge=lfs -text
40
+ images/korean_food.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: foodGPT
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ metrics:
16
+ - name: Accuracy
17
+ type: accuracy
18
+ value: 0.5972222089767456
19
+ ---
20
+
21
+ # foodGPT
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
+ #### American food
35
+
36
+ ![American food](images/American_food.jpg)
37
+
38
+ #### Chinese food
39
+
40
+ ![Chinese food](images/Chinese_food.jpg)
41
+
42
+ #### European food
43
+
44
+ ![European food](images/European_food.jpg)
45
+
46
+ #### Japanese food
47
+
48
+ ![Japanese food](images/Japanese_food.jpg)
49
+
50
+ #### korean food
51
+
52
+ ![korean food](images/korean_food.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": "American food",
13
+ "1": "Chinese food",
14
+ "2": "European food",
15
+ "3": "Japanese food",
16
+ "4": "korean food"
17
+ },
18
+ "image_size": 224,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "American food": "0",
23
+ "Chinese food": "1",
24
+ "European food": "2",
25
+ "Japanese food": "3",
26
+ "korean food": "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.44.2"
38
+ }
images/American_food.jpg ADDED

Git LFS Details

  • SHA256: 44b6e099d9a2ae0bdef4463f42e42d73acdb366f0e8fd0dfdd9f02e39024e7a7
  • Pointer size: 130 Bytes
  • Size of remote file: 35.8 kB
images/Chinese_food.jpg ADDED

Git LFS Details

  • SHA256: 5dbbeabe707dcda078a0b841afdf5c2472b0b4615204bc19b2087eea74e9d296
  • Pointer size: 130 Bytes
  • Size of remote file: 27.7 kB
images/European_food.jpg ADDED

Git LFS Details

  • SHA256: e0c7054b1a0f755e4e353e71b909d12920fbc4096e15e62a1dffca4f4adc8edf
  • Pointer size: 130 Bytes
  • Size of remote file: 38.6 kB
images/Japanese_food.jpg ADDED

Git LFS Details

  • SHA256: 3201feda70e0b5746dc50a2278d098cef2c77c5a75f440bc444eeced748fb4bd
  • Pointer size: 130 Bytes
  • Size of remote file: 64.5 kB
images/korean_food.jpg ADDED

Git LFS Details

  • SHA256: 9d0145bcbcfc6b77fe358c776277c781d72fe2543031fa33466de298eaf31f28
  • Pointer size: 130 Bytes
  • Size of remote file: 24.2 kB
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c6e93c1677889c6abfd21076ff0a6e33f770c9dee00464625c286109c5dae6c
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.1727246508.d9176d8d721d.621.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8ae3ad155314b33197dc097dc6962138be7833c587b1d04b0f3c90eb6be2e5c
3
+ size 1303