quangtuyennguyen
commited on
End of training
Browse files- README.md +66 -0
- config.json +68 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Nov20_00-58-53_2eb397773cc6/events.out.tfevents.1732064339.2eb397773cc6.608.1 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: google/vit-base-patch16-224-in21k
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: food_classify_viT
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# food_classify_viT
|
18 |
+
|
19 |
+
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.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.8683
|
22 |
+
- Accuracy: 0.8948
|
23 |
+
|
24 |
+
## Model description
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Intended uses & limitations
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training and evaluation data
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training procedure
|
37 |
+
|
38 |
+
### Training hyperparameters
|
39 |
+
|
40 |
+
The following hyperparameters were used during training:
|
41 |
+
- learning_rate: 5e-05
|
42 |
+
- train_batch_size: 16
|
43 |
+
- eval_batch_size: 16
|
44 |
+
- seed: 42
|
45 |
+
- gradient_accumulation_steps: 4
|
46 |
+
- total_train_batch_size: 64
|
47 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
48 |
+
- lr_scheduler_type: linear
|
49 |
+
- num_epochs: 4
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
54 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
55 |
+
| No log | 0.9970 | 83 | 1.6473 | 0.8236 |
|
56 |
+
| No log | 1.9940 | 166 | 1.1061 | 0.8863 |
|
57 |
+
| No log | 2.9910 | 249 | 0.9208 | 0.8820 |
|
58 |
+
| No log | 3.9880 | 332 | 0.8683 | 0.8948 |
|
59 |
+
|
60 |
+
|
61 |
+
### Framework versions
|
62 |
+
|
63 |
+
- Transformers 4.46.3
|
64 |
+
- Pytorch 2.5.1+cu121
|
65 |
+
- Datasets 3.1.0
|
66 |
+
- Tokenizers 0.20.3
|
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 |
+
"2": "chai",
|
15 |
+
"3": "chapati",
|
16 |
+
"4": "chole_bhature",
|
17 |
+
"5": "dal_makhani",
|
18 |
+
"6": "dhokla",
|
19 |
+
"7": "fried_rice",
|
20 |
+
"8": "idli",
|
21 |
+
"9": "jalebi",
|
22 |
+
"10": "kaathi_rolls",
|
23 |
+
"11": "kadai_paneer",
|
24 |
+
"12": "kulfi",
|
25 |
+
"13": "masala_dosa",
|
26 |
+
"14": "momos",
|
27 |
+
"15": "paani_puri",
|
28 |
+
"16": "pakode",
|
29 |
+
"17": "pav_bhaji",
|
30 |
+
"18": "pizza",
|
31 |
+
"19": "samosa"
|
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.46.3"
|
68 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:332c5450e733bcdab99db165b8239c83684131d07064e8eeb4bcdf277a54a0ab
|
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": "ViTImageProcessorFast",
|
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/Nov20_00-58-53_2eb397773cc6/events.out.tfevents.1732064339.2eb397773cc6.608.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dfab35149de08107f74c65cae6bc303fc80137b5401d99ea5ce9e6d1a1c65617
|
3 |
+
size 7439
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a642a46f697c528f851621d1fa8dd2fa37464e46799d45542a96d31c399f144c
|
3 |
+
size 5304
|