mudassir-khan
commited on
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.2562
|
21 |
+
- Accuracy: 0.9299
|
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.0023 | 0.3003 | 100 | 0.9838 | 0.8183 |
|
54 |
+
| 0.6632 | 0.6006 | 200 | 0.6198 | 0.8682 |
|
55 |
+
| 0.6017 | 0.9009 | 300 | 0.5164 | 0.8884 |
|
56 |
+
| 0.4634 | 1.2012 | 400 | 0.4615 | 0.8895 |
|
57 |
+
| 0.4579 | 1.5015 | 500 | 0.4084 | 0.8969 |
|
58 |
+
| 0.4473 | 1.8018 | 600 | 0.4043 | 0.8948 |
|
59 |
+
| 0.2992 | 2.1021 | 700 | 0.3623 | 0.8980 |
|
60 |
+
| 0.2645 | 2.4024 | 800 | 0.3327 | 0.9139 |
|
61 |
+
| 0.2166 | 2.7027 | 900 | 0.3242 | 0.9171 |
|
62 |
+
| 0.2273 | 3.0030 | 1000 | 0.2986 | 0.9203 |
|
63 |
+
| 0.2527 | 3.3033 | 1100 | 0.3150 | 0.9150 |
|
64 |
+
| 0.2265 | 3.6036 | 1200 | 0.2596 | 0.9277 |
|
65 |
+
| 0.1046 | 3.9039 | 1300 | 0.2562 | 0.9299 |
|
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:85bf4b528bbeb71b4a428c2a33c39f8aa01c4ba68c21fff362ca1672fe0915ea
|
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/Aug18_06-16-16_0a356dac1892/events.out.tfevents.1723961800.0a356dac1892.246.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc1c4f17e85445b5b783ee567b7dd5addf8ee10840440d51a0e584459370bb43
|
3 |
+
size 7684
|
runs/Aug18_06-23-38_0a356dac1892/events.out.tfevents.1723962230.0a356dac1892.246.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ab1037d68b1557b97d85c01371e2567423ee9cb5c1449d1c4e0a6eb4384ba003
|
3 |
+
size 38176
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:87dd7f46fb56e3828c7f532bdef8c10ad57c6bd1810ab33bc4225006b5e33326
|
3 |
+
size 5112
|