Akshay0706 commited on
Commit
cae8e69
·
1 Parent(s): 4c8af0e

End of training

Browse files
Files changed (5) hide show
  1. README.md +75 -0
  2. config.json +104 -0
  3. preprocessor_config.json +22 -0
  4. pytorch_model.bin +3 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: Flower-Image-Classification-Model
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.987601276700221
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
+ # Flower-Image-Classification-Model
32
+
33
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.5898
36
+ - Accuracy: 0.9876
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: 2e-05
56
+ - train_batch_size: 32
57
+ - eval_batch_size: 4
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 1
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
66
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
67
+ | 0.8603 | 1.0 | 1443 | 0.5898 | 0.9876 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.34.0
73
+ - Pytorch 2.1.0
74
+ - Datasets 2.14.5
75
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 0,
13
+ "1": 1,
14
+ "2": 2,
15
+ "3": 3,
16
+ "4": 4,
17
+ "5": 5,
18
+ "6": 6,
19
+ "7": 7,
20
+ "8": 8,
21
+ "9": 9,
22
+ "10": 10,
23
+ "11": 11,
24
+ "12": 12,
25
+ "13": 13,
26
+ "14": 14,
27
+ "15": 15,
28
+ "16": 16,
29
+ "17": 17,
30
+ "18": 18,
31
+ "19": 19,
32
+ "20": 20,
33
+ "21": 21,
34
+ "22": 22,
35
+ "23": 23,
36
+ "24": 24,
37
+ "25": 25,
38
+ "26": 26,
39
+ "27": 27,
40
+ "28": 28,
41
+ "29": 29,
42
+ "30": 30,
43
+ "31": 31,
44
+ "32": 32,
45
+ "33": 33,
46
+ "34": 34,
47
+ "35": 35,
48
+ "36": 36,
49
+ "37": 37
50
+ },
51
+ "image_size": 224,
52
+ "initializer_range": 0.02,
53
+ "intermediate_size": 3072,
54
+ "label2id": {
55
+ "0": 0,
56
+ "1": 1,
57
+ "2": 2,
58
+ "3": 3,
59
+ "4": 4,
60
+ "5": 5,
61
+ "6": 6,
62
+ "7": 7,
63
+ "8": 8,
64
+ "9": 9,
65
+ "10": 10,
66
+ "11": 11,
67
+ "12": 12,
68
+ "13": 13,
69
+ "14": 14,
70
+ "15": 15,
71
+ "16": 16,
72
+ "17": 17,
73
+ "18": 18,
74
+ "19": 19,
75
+ "20": 20,
76
+ "21": 21,
77
+ "22": 22,
78
+ "23": 23,
79
+ "24": 24,
80
+ "25": 25,
81
+ "26": 26,
82
+ "27": 27,
83
+ "28": 28,
84
+ "29": 29,
85
+ "30": 30,
86
+ "31": 31,
87
+ "32": 32,
88
+ "33": 33,
89
+ "34": 34,
90
+ "35": 35,
91
+ "36": 36,
92
+ "37": 37
93
+ },
94
+ "layer_norm_eps": 1e-12,
95
+ "model_type": "vit",
96
+ "num_attention_heads": 12,
97
+ "num_channels": 3,
98
+ "num_hidden_layers": 12,
99
+ "patch_size": 16,
100
+ "problem_type": "single_label_classification",
101
+ "qkv_bias": true,
102
+ "torch_dtype": "float32",
103
+ "transformers_version": "4.34.0"
104
+ }
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": "ViTImageProcessor",
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
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e7f0310c4b867f19e2ff750f1d7ddd871c0824b320d52d8635e2903665cdb41
3
+ size 343377130
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82ba571b0a5241b45d39f5ea0c58c3b14930c0fb57a0fab25c10966b2e70e313
3
+ size 4472