Akshay0706 commited on
Commit
01a4872
·
1 Parent(s): db20555

End of training

Browse files
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - image_folder
8
+ metrics:
9
+ - accuracy
10
+ - f1
11
+ model-index:
12
+ - name: All-Plants-18-Epochs-Model
13
+ results:
14
+ - task:
15
+ name: Image Classification
16
+ type: image-classification
17
+ dataset:
18
+ name: image_folder
19
+ type: image_folder
20
+ config: Dataset
21
+ split: train
22
+ args: Dataset
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.9847645429362881
27
+ - name: F1
28
+ type: f1
29
+ value: 0.984922643975302
30
+ ---
31
+
32
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
33
+ should probably proofread and complete it, then remove this comment. -->
34
+
35
+ # All-Plants-18-Epochs-Model
36
+
37
+ 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 image_folder dataset.
38
+ It achieves the following results on the evaluation set:
39
+ - Loss: 0.0888
40
+ - Accuracy: 0.9848
41
+ - F1: 0.9849
42
+
43
+ ## Model description
44
+
45
+ More information needed
46
+
47
+ ## Intended uses & limitations
48
+
49
+ More information needed
50
+
51
+ ## Training and evaluation data
52
+
53
+ More information needed
54
+
55
+ ## Training procedure
56
+
57
+ ### Training hyperparameters
58
+
59
+ The following hyperparameters were used during training:
60
+ - learning_rate: 2e-05
61
+ - train_batch_size: 16
62
+ - eval_batch_size: 16
63
+ - seed: 42
64
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
65
+ - lr_scheduler_type: linear
66
+ - num_epochs: 18
67
+
68
+ ### Training results
69
+
70
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
71
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
72
+ | 0.9212 | 1.0 | 407 | 0.3931 | 0.9501 | 0.9579 |
73
+ | 0.2659 | 2.0 | 814 | 0.2176 | 0.9668 | 0.9674 |
74
+ | 0.137 | 3.0 | 1221 | 0.1481 | 0.9723 | 0.9731 |
75
+ | 0.0865 | 4.0 | 1628 | 0.1043 | 0.9834 | 0.9836 |
76
+ | 0.0557 | 5.0 | 2035 | 0.0888 | 0.9848 | 0.9849 |
77
+ | 0.0408 | 6.0 | 2442 | 0.0839 | 0.9848 | 0.9848 |
78
+ | 0.0289 | 7.0 | 2849 | 0.0920 | 0.9848 | 0.9849 |
79
+ | 0.0229 | 8.0 | 3256 | 0.0817 | 0.9834 | 0.9837 |
80
+ | 0.0175 | 9.0 | 3663 | 0.0890 | 0.9820 | 0.9823 |
81
+ | 0.0156 | 10.0 | 4070 | 0.0966 | 0.9820 | 0.9823 |
82
+ | 0.0121 | 11.0 | 4477 | 0.0809 | 0.9834 | 0.9837 |
83
+ | 0.0102 | 12.0 | 4884 | 0.0875 | 0.9820 | 0.9823 |
84
+ | 0.0086 | 13.0 | 5291 | 0.0873 | 0.9820 | 0.9823 |
85
+ | 0.0077 | 14.0 | 5698 | 0.0860 | 0.9820 | 0.9823 |
86
+ | 0.0068 | 15.0 | 6105 | 0.0876 | 0.9820 | 0.9823 |
87
+ | 0.0062 | 16.0 | 6512 | 0.0896 | 0.9820 | 0.9823 |
88
+ | 0.0059 | 17.0 | 6919 | 0.0890 | 0.9820 | 0.9823 |
89
+ | 0.0056 | 18.0 | 7326 | 0.0894 | 0.9820 | 0.9823 |
90
+
91
+
92
+ ### Framework versions
93
+
94
+ - Transformers 4.35.0
95
+ - Pytorch 2.0.0
96
+ - Datasets 2.1.0
97
+ - Tokenizers 0.14.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 18.0,
3
+ "total_flos": 9.063271672992682e+18,
4
+ "train_loss": 0.09193798999723893,
5
+ "train_runtime": 3856.2397,
6
+ "train_samples": 6497,
7
+ "train_samples_per_second": 30.326,
8
+ "train_steps_per_second": 1.9
9
+ }
config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
26
+ "image_size": 224,
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 3072,
29
+ "label2id": {
30
+ "0": 0,
31
+ "1": 1,
32
+ "2": 2,
33
+ "3": 3,
34
+ "4": 4,
35
+ "5": 5,
36
+ "6": 6,
37
+ "7": 7,
38
+ "8": 8,
39
+ "9": 9,
40
+ "10": 10,
41
+ "11": 11,
42
+ "12": 12
43
+ },
44
+ "layer_norm_eps": 1e-12,
45
+ "model_type": "vit",
46
+ "num_attention_heads": 12,
47
+ "num_channels": 3,
48
+ "num_hidden_layers": 12,
49
+ "patch_size": 16,
50
+ "problem_type": "single_label_classification",
51
+ "qkv_bias": true,
52
+ "torch_dtype": "float32",
53
+ "transformers_version": "4.35.0"
54
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61017cddaabac38949ed4bf7e4487f3d9c396436fd4d79ee79751dfa2b4a8844
3
+ size 343257812
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
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 18.0,
3
+ "total_flos": 9.063271672992682e+18,
4
+ "train_loss": 0.09193798999723893,
5
+ "train_runtime": 3856.2397,
6
+ "train_samples": 6497,
7
+ "train_samples_per_second": 30.326,
8
+ "train_steps_per_second": 1.9
9
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:236709df6e7c2d41b5f210153b8d59be5675439ee07566a98e7d9d131ff4ecc5
3
+ size 4091