Model save
Browse files- README.md +72 -0
- config.json +68 -0
- model.safetensors +3 -0
- preprocessor_config.json +19 -0
- runs/Nov03_08-11-17_b84efab5ccd4/events.out.tfevents.1698999157.b84efab5ccd4.190.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.2534
|
21 |
+
- Accuracy: 0.9330
|
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.5271 | 0.3 | 100 | 1.2775 | 0.7853 |
|
54 |
+
| 0.8635 | 0.6 | 200 | 0.7137 | 0.8746 |
|
55 |
+
| 0.6744 | 0.9 | 300 | 0.6281 | 0.8417 |
|
56 |
+
| 0.4637 | 1.2 | 400 | 0.4672 | 0.8820 |
|
57 |
+
| 0.4562 | 1.5 | 500 | 0.4433 | 0.8916 |
|
58 |
+
| 0.456 | 1.8 | 600 | 0.3822 | 0.9054 |
|
59 |
+
| 0.2996 | 2.1 | 700 | 0.3619 | 0.9150 |
|
60 |
+
| 0.3554 | 2.4 | 800 | 0.3226 | 0.9245 |
|
61 |
+
| 0.3111 | 2.7 | 900 | 0.3341 | 0.9192 |
|
62 |
+
| 0.2667 | 3.0 | 1000 | 0.2828 | 0.9341 |
|
63 |
+
| 0.2442 | 3.3 | 1100 | 0.2733 | 0.9299 |
|
64 |
+
| 0.216 | 3.6 | 1200 | 0.2690 | 0.9288 |
|
65 |
+
| 0.2237 | 3.9 | 1300 | 0.2534 | 0.9330 |
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- Transformers 4.35.0
|
71 |
+
- Pytorch 2.1.0+cu118
|
72 |
+
- Tokenizers 0.14.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.35.0"
|
68 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:08664dc3fa480859668b46bb6fb7cc8117fd357670ddc085d4243cd82db36c8d
|
3 |
+
size 343279344
|
preprocessor_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 224
|
19 |
+
}
|
runs/Nov03_08-11-17_b84efab5ccd4/events.out.tfevents.1698999157.b84efab5ccd4.190.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c195c4a790501a4a3b14978d2a0612bfa2b214b314526b047189cad2c6baed5
|
3 |
+
size 30382
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0bcc34aecaf3233855f62c731bab0beb9c7f18217f6a80416d1dfd436680e29c
|
3 |
+
size 4536
|