ZaneHorrible commited on
Commit
6a3de21
1 Parent(s): d468bc7

Model save

Browse files
README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch32-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: adam_ViTB-32-224-in21k-2e-4-batch_16_epoch_4_classes_24
12
+ results:
13
+ - task:
14
+ name: Image Classification
15
+ type: image-classification
16
+ dataset:
17
+ name: imagefolder
18
+ type: imagefolder
19
+ config: default
20
+ split: train
21
+ args: default
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.9568965517241379
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # adam_ViTB-32-224-in21k-2e-4-batch_16_epoch_4_classes_24
32
+
33
+ This model is a fine-tuned version of [google/vit-base-patch32-224-in21k](https://huggingface.co/google/vit-base-patch32-224-in21k) on the imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.2485
36
+ - Accuracy: 0.9569
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 0.0002
56
+ - train_batch_size: 16
57
+ - eval_batch_size: 8
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 3
62
+ - mixed_precision_training: Native AMP
63
+
64
+ ### Training results
65
+
66
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
67
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
68
+ | 1.1079 | 0.07 | 100 | 1.0858 | 0.8506 |
69
+ | 0.5485 | 0.14 | 200 | 0.6077 | 0.8649 |
70
+ | 0.4432 | 0.21 | 300 | 0.4838 | 0.8822 |
71
+ | 0.3463 | 0.28 | 400 | 0.4479 | 0.8764 |
72
+ | 0.3089 | 0.35 | 500 | 0.3687 | 0.8908 |
73
+ | 0.2341 | 0.42 | 600 | 0.4974 | 0.8635 |
74
+ | 0.2635 | 0.49 | 700 | 0.3657 | 0.8894 |
75
+ | 0.2038 | 0.56 | 800 | 0.2892 | 0.9080 |
76
+ | 0.1374 | 0.63 | 900 | 0.3617 | 0.8865 |
77
+ | 0.2198 | 0.7 | 1000 | 0.3332 | 0.9037 |
78
+ | 0.2532 | 0.77 | 1100 | 0.3292 | 0.9037 |
79
+ | 0.1897 | 0.84 | 1200 | 0.2957 | 0.9167 |
80
+ | 0.1718 | 0.91 | 1300 | 0.2398 | 0.9339 |
81
+ | 0.1637 | 0.97 | 1400 | 0.3514 | 0.9009 |
82
+ | 0.0794 | 1.04 | 1500 | 0.2616 | 0.9224 |
83
+ | 0.0541 | 1.11 | 1600 | 0.3213 | 0.9124 |
84
+ | 0.0475 | 1.18 | 1700 | 0.3717 | 0.9124 |
85
+ | 0.1251 | 1.25 | 1800 | 0.2938 | 0.9195 |
86
+ | 0.0712 | 1.32 | 1900 | 0.2988 | 0.9181 |
87
+ | 0.1021 | 1.39 | 2000 | 0.3862 | 0.9009 |
88
+ | 0.0073 | 1.46 | 2100 | 0.2492 | 0.9310 |
89
+ | 0.0114 | 1.53 | 2200 | 0.2902 | 0.9267 |
90
+ | 0.0487 | 1.6 | 2300 | 0.2301 | 0.9411 |
91
+ | 0.0856 | 1.67 | 2400 | 0.2682 | 0.9411 |
92
+ | 0.0028 | 1.74 | 2500 | 0.2948 | 0.9325 |
93
+ | 0.0028 | 1.81 | 2600 | 0.3002 | 0.9282 |
94
+ | 0.0279 | 1.88 | 2700 | 0.2797 | 0.9353 |
95
+ | 0.0768 | 1.95 | 2800 | 0.2721 | 0.9368 |
96
+ | 0.0251 | 2.02 | 2900 | 0.2896 | 0.9325 |
97
+ | 0.0645 | 2.09 | 3000 | 0.2802 | 0.9397 |
98
+ | 0.0022 | 2.16 | 3100 | 0.2387 | 0.9468 |
99
+ | 0.0073 | 2.23 | 3200 | 0.2074 | 0.9540 |
100
+ | 0.0016 | 2.3 | 3300 | 0.2271 | 0.9440 |
101
+ | 0.0016 | 2.37 | 3400 | 0.2513 | 0.9526 |
102
+ | 0.0656 | 2.44 | 3500 | 0.2889 | 0.9411 |
103
+ | 0.0013 | 2.51 | 3600 | 0.2750 | 0.9397 |
104
+ | 0.0014 | 2.58 | 3700 | 0.2463 | 0.9526 |
105
+ | 0.0011 | 2.65 | 3800 | 0.2723 | 0.9483 |
106
+ | 0.0012 | 2.72 | 3900 | 0.2631 | 0.9511 |
107
+ | 0.0012 | 2.79 | 4000 | 0.2584 | 0.9540 |
108
+ | 0.0012 | 2.86 | 4100 | 0.2572 | 0.9540 |
109
+ | 0.001 | 2.92 | 4200 | 0.2481 | 0.9569 |
110
+ | 0.0011 | 2.99 | 4300 | 0.2485 | 0.9569 |
111
+
112
+
113
+ ### Framework versions
114
+
115
+ - Transformers 4.39.3
116
+ - Pytorch 2.1.2
117
+ - Datasets 2.18.0
118
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch32-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": "Bhapa Pitha(\u09ad\u09be\u09aa\u09be \u09aa\u09bf\u09a0\u09be)",
13
+ "1": "Biriyani(\u09ac\u09bf\u09b0\u09bf\u09df\u09be\u09a8\u09bf)",
14
+ "10": "Khichuri(\u0996\u09bf\u099a\u09c1\u09a1\u09bc\u09bf)",
15
+ "11": "Malpua Pitha(\u09ae\u09be\u09b2\u09aa\u09c1\u09df\u09be \u09aa\u09bf\u09a0\u09be)",
16
+ "12": "Mustard Hilsa(\u09b8\u09b0\u09b7\u09c7 \u0987\u09b2\u09bf\u09b6)",
17
+ "13": "Nakshi Pitha(\u09a8\u0995\u09b6\u09bf \u09aa\u09bf\u09a0\u09be)",
18
+ "14": "Panta Ilish(\u09aa\u09be\u09a8\u09cd\u09a4\u09be \u0987\u09b2\u09bf\u09b6)",
19
+ "15": "Patishapta Pitha(\u09aa\u09be\u099f\u09bf\u09b8\u09be\u09aa\u099f\u09be)",
20
+ "16": "Prawn Malai Curry(\u099a\u09bf\u0982\u09dc\u09bf \u09ae\u09be\u09b2\u09be\u0987\u0995\u09be\u09b0\u09c0)",
21
+ "17": "Rasgulla(\u09b0\u09b8\u0997\u09cb\u09b2\u09cd\u09b2\u09be)",
22
+ "18": "Rose Cookies(\u09ab\u09c1\u09b2\u099d\u09c1\u09b0\u09bf \u09aa\u09bf\u09a0\u09be)",
23
+ "19": "Roshmalai(\u09b0\u09b8\u09ae\u09be\u09b2\u09be\u0987)",
24
+ "2": "Chicken Pulao(\u09ae\u09cb\u09b0\u0997 \u09aa\u09cb\u09b2\u09be\u0993)",
25
+ "20": "Shahi Tukra(\u09b6\u09be\u09b9\u09bf \u099f\u09c1\u0995\u09b0\u09be)",
26
+ "21": "Shingara(\u09b8\u09bf\u0999\u09cd\u0997\u09be\u09b0\u09be)",
27
+ "22": "Sweet Yogurt(\u09ae\u09bf\u09b7\u09cd\u099f\u09bf \u09a6\u0987)",
28
+ "23": "Tehari(\u09a4\u09c7\u09b9\u09be\u09b0\u09bf)",
29
+ "3": "Chickpease Bhuna(\u099b\u09cb\u09b2\u09be\u09ad\u09c1\u09a8\u09be)",
30
+ "4": "Egg Curry(\u09a1\u09bf\u09ae\u09ad\u09c1\u09a8\u09be)",
31
+ "5": "Falooda(\u09ab\u09be\u09b2\u09c1\u09a6\u09be)",
32
+ "6": "Fuchka(\u09ab\u09c1\u099a\u0995\u09be)",
33
+ "7": "Haleem(\u09b9\u09be\u09b2\u09bf\u09ae)",
34
+ "8": "Jalebi(\u099c\u09bf\u09b2\u09be\u09aa\u09c0)",
35
+ "9": "Kala Bhuna(\u0995\u09be\u09b2\u09be \u09ad\u09c1\u09a8\u09be)"
36
+ },
37
+ "image_size": 224,
38
+ "initializer_range": 0.02,
39
+ "intermediate_size": 3072,
40
+ "label2id": {
41
+ "Bhapa Pitha(\u09ad\u09be\u09aa\u09be \u09aa\u09bf\u09a0\u09be)": "0",
42
+ "Biriyani(\u09ac\u09bf\u09b0\u09bf\u09df\u09be\u09a8\u09bf)": "1",
43
+ "Chicken Pulao(\u09ae\u09cb\u09b0\u0997 \u09aa\u09cb\u09b2\u09be\u0993)": "2",
44
+ "Chickpease Bhuna(\u099b\u09cb\u09b2\u09be\u09ad\u09c1\u09a8\u09be)": "3",
45
+ "Egg Curry(\u09a1\u09bf\u09ae\u09ad\u09c1\u09a8\u09be)": "4",
46
+ "Falooda(\u09ab\u09be\u09b2\u09c1\u09a6\u09be)": "5",
47
+ "Fuchka(\u09ab\u09c1\u099a\u0995\u09be)": "6",
48
+ "Haleem(\u09b9\u09be\u09b2\u09bf\u09ae)": "7",
49
+ "Jalebi(\u099c\u09bf\u09b2\u09be\u09aa\u09c0)": "8",
50
+ "Kala Bhuna(\u0995\u09be\u09b2\u09be \u09ad\u09c1\u09a8\u09be)": "9",
51
+ "Khichuri(\u0996\u09bf\u099a\u09c1\u09a1\u09bc\u09bf)": "10",
52
+ "Malpua Pitha(\u09ae\u09be\u09b2\u09aa\u09c1\u09df\u09be \u09aa\u09bf\u09a0\u09be)": "11",
53
+ "Mustard Hilsa(\u09b8\u09b0\u09b7\u09c7 \u0987\u09b2\u09bf\u09b6)": "12",
54
+ "Nakshi Pitha(\u09a8\u0995\u09b6\u09bf \u09aa\u09bf\u09a0\u09be)": "13",
55
+ "Panta Ilish(\u09aa\u09be\u09a8\u09cd\u09a4\u09be \u0987\u09b2\u09bf\u09b6)": "14",
56
+ "Patishapta Pitha(\u09aa\u09be\u099f\u09bf\u09b8\u09be\u09aa\u099f\u09be)": "15",
57
+ "Prawn Malai Curry(\u099a\u09bf\u0982\u09dc\u09bf \u09ae\u09be\u09b2\u09be\u0987\u0995\u09be\u09b0\u09c0)": "16",
58
+ "Rasgulla(\u09b0\u09b8\u0997\u09cb\u09b2\u09cd\u09b2\u09be)": "17",
59
+ "Rose Cookies(\u09ab\u09c1\u09b2\u099d\u09c1\u09b0\u09bf \u09aa\u09bf\u09a0\u09be)": "18",
60
+ "Roshmalai(\u09b0\u09b8\u09ae\u09be\u09b2\u09be\u0987)": "19",
61
+ "Shahi Tukra(\u09b6\u09be\u09b9\u09bf \u099f\u09c1\u0995\u09b0\u09be)": "20",
62
+ "Shingara(\u09b8\u09bf\u0999\u09cd\u0997\u09be\u09b0\u09be)": "21",
63
+ "Sweet Yogurt(\u09ae\u09bf\u09b7\u09cd\u099f\u09bf \u09a6\u0987)": "22",
64
+ "Tehari(\u09a4\u09c7\u09b9\u09be\u09b0\u09bf)": "23"
65
+ },
66
+ "layer_norm_eps": 1e-12,
67
+ "model_type": "vit",
68
+ "num_attention_heads": 12,
69
+ "num_channels": 3,
70
+ "num_hidden_layers": 12,
71
+ "patch_size": 32,
72
+ "problem_type": "single_label_classification",
73
+ "qkv_bias": true,
74
+ "torch_dtype": "float32",
75
+ "transformers_version": "4.39.3"
76
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:952b105e10b09fed3ebc06f98b64f34abae76fbb574463660ed3fd477c25f72c
3
+ size 349917968
preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "image_processor_type": "ViTFeatureExtractor",
25
+ "image_std": [
26
+ 0.5,
27
+ 0.5,
28
+ 0.5
29
+ ],
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 224,
34
+ "width": 224
35
+ }
36
+ }
runs/May15_19-16-45_cf25d4e706ed/events.out.tfevents.1715800606.cf25d4e706ed.34.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5de84136cac46f43ea141183a390362ef8658fbf1b62ecd5984e47a52724d32
3
+ size 113195
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2395c7e46bc524f899a4c2d78851624eaa3b8fc12daf342c6d712c358fe36574
3
+ size 5048