nurizz commited on
Commit
252443a
1 Parent(s): 6d2ee02

Model save

Browse files
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: finetuned-indian-food
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # finetuned-indian-food
17
+
18
+ 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.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.2206
21
+ - Accuracy: 0.9458
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
+ - learning_rate: 0.0002
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 4
47
+ - mixed_precision_training: Native AMP
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
53
+ | 1.1092 | 0.3003 | 100 | 1.0007 | 0.8225 |
54
+ | 0.7677 | 0.6006 | 200 | 0.6427 | 0.8533 |
55
+ | 0.7808 | 0.9009 | 300 | 0.5790 | 0.8533 |
56
+ | 0.3628 | 1.2012 | 400 | 0.5051 | 0.8629 |
57
+ | 0.2928 | 1.5015 | 500 | 0.3815 | 0.9086 |
58
+ | 0.3293 | 1.8018 | 600 | 0.3522 | 0.9065 |
59
+ | 0.2239 | 2.1021 | 700 | 0.3320 | 0.9086 |
60
+ | 0.288 | 2.4024 | 800 | 0.3520 | 0.9065 |
61
+ | 0.3209 | 2.7027 | 900 | 0.2842 | 0.9299 |
62
+ | 0.187 | 3.0030 | 1000 | 0.2577 | 0.9352 |
63
+ | 0.1801 | 3.3033 | 1100 | 0.2511 | 0.9341 |
64
+ | 0.2028 | 3.6036 | 1200 | 0.2210 | 0.9469 |
65
+ | 0.1564 | 3.9039 | 1300 | 0.2206 | 0.9458 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.42.4
71
+ - Pytorch 2.3.1+cu121
72
+ - Datasets 2.21.0
73
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "problem_type": "single_label_classification",
65
+ "qkv_bias": true,
66
+ "torch_dtype": "float32",
67
+ "transformers_version": "4.42.4"
68
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10bc39d37df027fc48b76c1638133ad20dc279fd22934fbd2afba6d2a5531cb4
3
+ size 343279344
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/Aug14_20-04-05_3ebd4a7f7818/events.out.tfevents.1723665992.3ebd4a7f7818.229.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aba3f907d298b00063603c24f1fda6554b4be0bfd027ad0dda75b8093efb33dc
3
+ size 38176
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f246043814898f5e4c8803771e25b7883bd0d639de930beb7d1ea115c5178111
3
+ size 5112