KiViDrag commited on
Commit
1d4a6c6
·
verified ·
1 Parent(s): b4236f1

End of training

Browse files
Files changed (5) hide show
  1. README.md +92 -0
  2. config.json +34 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +23 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ model-index:
11
+ - name: beans_ViT
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # beans_ViT
19
+
20
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 1.2997
23
+ - Accuracy: 0.7969
24
+ - F1: 0.7991
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 5e-05
44
+ - train_batch_size: 64
45
+ - eval_batch_size: 64
46
+ - seed: 42
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: 30
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
54
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
55
+ | No log | 1.0 | 17 | 0.8693 | 0.6090 | 0.5953 |
56
+ | No log | 2.0 | 34 | 0.9652 | 0.6015 | 0.5977 |
57
+ | No log | 3.0 | 51 | 0.7178 | 0.6992 | 0.6927 |
58
+ | No log | 4.0 | 68 | 0.7488 | 0.6992 | 0.6955 |
59
+ | No log | 5.0 | 85 | 0.6517 | 0.7068 | 0.7070 |
60
+ | No log | 6.0 | 102 | 0.7816 | 0.6842 | 0.6541 |
61
+ | No log | 7.0 | 119 | 0.5014 | 0.7744 | 0.7733 |
62
+ | No log | 8.0 | 136 | 0.5321 | 0.7669 | 0.7680 |
63
+ | No log | 9.0 | 153 | 0.5985 | 0.7444 | 0.7457 |
64
+ | No log | 10.0 | 170 | 0.4675 | 0.8271 | 0.8274 |
65
+ | No log | 11.0 | 187 | 0.5750 | 0.7744 | 0.7576 |
66
+ | No log | 12.0 | 204 | 0.6617 | 0.7293 | 0.7066 |
67
+ | No log | 13.0 | 221 | 0.6396 | 0.7594 | 0.7577 |
68
+ | No log | 14.0 | 238 | 0.4302 | 0.8346 | 0.8352 |
69
+ | No log | 15.0 | 255 | 0.4018 | 0.8421 | 0.8427 |
70
+ | No log | 16.0 | 272 | 0.5673 | 0.7895 | 0.7883 |
71
+ | No log | 17.0 | 289 | 0.5037 | 0.8120 | 0.8097 |
72
+ | No log | 18.0 | 306 | 0.5939 | 0.8496 | 0.8487 |
73
+ | No log | 19.0 | 323 | 0.6590 | 0.8120 | 0.8111 |
74
+ | No log | 20.0 | 340 | 0.6060 | 0.8571 | 0.8559 |
75
+ | No log | 21.0 | 357 | 0.5806 | 0.8421 | 0.8418 |
76
+ | No log | 22.0 | 374 | 0.6180 | 0.8421 | 0.8414 |
77
+ | No log | 23.0 | 391 | 0.7707 | 0.7669 | 0.7633 |
78
+ | No log | 24.0 | 408 | 0.5440 | 0.8421 | 0.8418 |
79
+ | No log | 25.0 | 425 | 0.6596 | 0.8496 | 0.8497 |
80
+ | No log | 26.0 | 442 | 0.5393 | 0.8346 | 0.8342 |
81
+ | No log | 27.0 | 459 | 0.6320 | 0.8797 | 0.8795 |
82
+ | No log | 28.0 | 476 | 0.5903 | 0.8496 | 0.8507 |
83
+ | No log | 29.0 | 493 | 0.6826 | 0.8647 | 0.8644 |
84
+ | 0.3346 | 30.0 | 510 | 0.6493 | 0.8571 | 0.8567 |
85
+
86
+
87
+ ### Framework versions
88
+
89
+ - Transformers 4.47.0
90
+ - Pytorch 2.5.1+cu121
91
+ - Datasets 3.3.1
92
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224",
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": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "LABEL_0": 0,
21
+ "LABEL_1": 1,
22
+ "LABEL_2": 2
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "model_type": "vit",
26
+ "num_attention_heads": 12,
27
+ "num_channels": 3,
28
+ "num_hidden_layers": 12,
29
+ "patch_size": 16,
30
+ "problem_type": "single_label_classification",
31
+ "qkv_bias": true,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.47.0"
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffb85a92f17343c9a1b58ced5a6e55c8860949c36524e51d66be90ce8f6af8ed
3
+ size 343227052
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "ViTImageProcessorFast",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 224,
21
+ "width": 224
22
+ }
23
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3c57f9f869bc5c5ac660f01573d6060fc85ecc06c288280e86ace70dcbd6f5c
3
+ size 5240