Vishaltiwari2019 commited on
Commit
56ee6ca
1 Parent(s): a852ab9

End of training

Browse files
Files changed (4) hide show
  1. README.md +57 -0
  2. config.json +66 -0
  3. preprocessor_config.json +22 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: Vishaltiwari2019/food_classifier_one
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # Vishaltiwari2019/food_classifier_one
15
+
16
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 1.2207
19
+ - Validation Loss: 0.8370
20
+ - Train Accuracy: 0.8427
21
+ - Epoch: 2
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 15984, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
41
+ - training_precision: float32
42
+
43
+ ### Training results
44
+
45
+ | Train Loss | Validation Loss | Train Accuracy | Epoch |
46
+ |:----------:|:---------------:|:--------------:|:-----:|
47
+ | 2.4354 | 1.6935 | 0.7566 | 0 |
48
+ | 1.6148 | 1.1095 | 0.8119 | 1 |
49
+ | 1.2207 | 0.8370 | 0.8427 | 2 |
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.38.2
55
+ - TensorFlow 2.15.0
56
+ - Datasets 2.18.0
57
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "burger",
13
+ "1": "butter_naan",
14
+ "10": "kaathi_rolls",
15
+ "11": "kadai_paneer",
16
+ "12": "kulfi",
17
+ "13": "masala_dosa",
18
+ "14": "momos",
19
+ "15": "paani_puri",
20
+ "16": "pakode",
21
+ "17": "pav_bhaji",
22
+ "18": "pizza",
23
+ "19": "samosa",
24
+ "2": "chai",
25
+ "3": "chapati",
26
+ "4": "chole_bhature",
27
+ "5": "dal_makhani",
28
+ "6": "dhokla",
29
+ "7": "fried_rice",
30
+ "8": "idli",
31
+ "9": "jalebi"
32
+ },
33
+ "image_size": 224,
34
+ "initializer_range": 0.02,
35
+ "intermediate_size": 3072,
36
+ "label2id": {
37
+ "burger": "0",
38
+ "butter_naan": "1",
39
+ "chai": "2",
40
+ "chapati": "3",
41
+ "chole_bhature": "4",
42
+ "dal_makhani": "5",
43
+ "dhokla": "6",
44
+ "fried_rice": "7",
45
+ "idli": "8",
46
+ "jalebi": "9",
47
+ "kaathi_rolls": "10",
48
+ "kadai_paneer": "11",
49
+ "kulfi": "12",
50
+ "masala_dosa": "13",
51
+ "momos": "14",
52
+ "paani_puri": "15",
53
+ "pakode": "16",
54
+ "pav_bhaji": "17",
55
+ "pizza": "18",
56
+ "samosa": "19"
57
+ },
58
+ "layer_norm_eps": 1e-12,
59
+ "model_type": "vit",
60
+ "num_attention_heads": 12,
61
+ "num_channels": 3,
62
+ "num_hidden_layers": 12,
63
+ "patch_size": 16,
64
+ "qkv_bias": true,
65
+ "transformers_version": "4.38.2"
66
+ }
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": "ViTImageProcessor",
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
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ac09ae6aa4d393805634bbf258b2aea3069ebeb444a91143a427200fe12b71d
3
+ size 343541432