Model save
Browse files
README.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: finetuned-bangladeshi-traditional-food
|
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 |
+
# finetuned-bangladeshi-traditional-food
|
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.3867
|
22 |
+
- Accuracy: 0.9190
|
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: 0.0002
|
42 |
+
- train_batch_size: 32
|
43 |
+
- eval_batch_size: 16
|
44 |
+
- seed: 42
|
45 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- num_epochs: 4
|
48 |
+
- mixed_precision_training: Native AMP
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
53 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
54 |
+
| 0.703 | 1.5625 | 100 | 0.6128 | 0.9022 |
|
55 |
+
| 0.252 | 3.125 | 200 | 0.3867 | 0.9190 |
|
56 |
+
|
57 |
+
|
58 |
+
### Framework versions
|
59 |
+
|
60 |
+
- Transformers 4.46.3
|
61 |
+
- Pytorch 2.4.0
|
62 |
+
- Datasets 3.1.0
|
63 |
+
- Tokenizers 0.20.3
|
config.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "Peanut Chikki",
|
13 |
+
"1": "Popped Rice",
|
14 |
+
"10": "\u0995\u09a6\u09ae\u09be",
|
15 |
+
"11": "\u0997\u099c\u09be",
|
16 |
+
"12": "\u09a4\u09bf\u09b2\u09c7\u09b0 \u0996\u09be\u099c\u09be",
|
17 |
+
"13": "\u09a8\u0995\u09c1\u09b2\u09a6\u09be\u09a8\u09be",
|
18 |
+
"14": "\u09a8\u09be\u09b0\u09bf\u0995\u09c7\u09b2 \u09a8\u09be\u09a1\u09bc\u09c1",
|
19 |
+
"15": "\u09a8\u09bf\u09ae\u0995\u09bf",
|
20 |
+
"16": "\u09ac\u09be\u09a4\u09be\u09b8\u09be",
|
21 |
+
"17": "\u09ae\u09bf\u099b\u09b0\u09bf",
|
22 |
+
"2": "Puffed Rice",
|
23 |
+
"3": "bakarkhani",
|
24 |
+
"4": "flattened rice",
|
25 |
+
"5": "jalebi",
|
26 |
+
"6": "morobba",
|
27 |
+
"7": "muri mowa",
|
28 |
+
"8": "soan papdi",
|
29 |
+
"9": "\u0986\u09ae\u09b8\u09a4\u09cd\u09a4\u09cd\u09ac"
|
30 |
+
},
|
31 |
+
"image_size": 224,
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"intermediate_size": 3072,
|
34 |
+
"label2id": {
|
35 |
+
"Peanut Chikki": "0",
|
36 |
+
"Popped Rice": "1",
|
37 |
+
"Puffed Rice": "2",
|
38 |
+
"bakarkhani": "3",
|
39 |
+
"flattened rice": "4",
|
40 |
+
"jalebi": "5",
|
41 |
+
"morobba": "6",
|
42 |
+
"muri mowa": "7",
|
43 |
+
"soan papdi": "8",
|
44 |
+
"\u0986\u09ae\u09b8\u09a4\u09cd\u09a4\u09cd\u09ac": "9",
|
45 |
+
"\u0995\u09a6\u09ae\u09be": "10",
|
46 |
+
"\u0997\u099c\u09be": "11",
|
47 |
+
"\u09a4\u09bf\u09b2\u09c7\u09b0 \u0996\u09be\u099c\u09be": "12",
|
48 |
+
"\u09a8\u0995\u09c1\u09b2\u09a6\u09be\u09a8\u09be": "13",
|
49 |
+
"\u09a8\u09be\u09b0\u09bf\u0995\u09c7\u09b2 \u09a8\u09be\u09a1\u09bc\u09c1": "14",
|
50 |
+
"\u09a8\u09bf\u09ae\u0995\u09bf": "15",
|
51 |
+
"\u09ac\u09be\u09a4\u09be\u09b8\u09be": "16",
|
52 |
+
"\u09ae\u09bf\u099b\u09b0\u09bf": "17"
|
53 |
+
},
|
54 |
+
"layer_norm_eps": 1e-12,
|
55 |
+
"model_type": "vit",
|
56 |
+
"num_attention_heads": 12,
|
57 |
+
"num_channels": 3,
|
58 |
+
"num_hidden_layers": 12,
|
59 |
+
"patch_size": 16,
|
60 |
+
"problem_type": "single_label_classification",
|
61 |
+
"qkv_bias": true,
|
62 |
+
"torch_dtype": "float32",
|
63 |
+
"transformers_version": "4.46.3"
|
64 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f9f3dba1a76e37593fb689472f69a374aa2f9c7b3e5fafa5035ea86715d4da93
|
3 |
+
size 343273192
|
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/Dec08_07-41-29_64968b5b03f4/events.out.tfevents.1733643820.64968b5b03f4.23.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5c1355fca57ff3f89ba13d2948053a1e4ba413814adc7cf427a118d4d0bb263
|
3 |
+
size 8477
|
runs/Dec08_08-00-19_64968b5b03f4/events.out.tfevents.1733644833.64968b5b03f4.23.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b1fe5f0036ab694a2b64c6bc3f1737ee1b3d2579cd9fe6154f207b61721869cb
|
3 |
+
size 12628
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b7e1f115672319c84ee8bd77531e74158bdd740ee70414f95bc86a912db901d1
|
3 |
+
size 5304
|