Promemoria commited on
Commit
c474c89
·
verified ·
1 Parent(s): edc6941

WOOL_CLASS_V2_trainer

Browse files
Files changed (5) hide show
  1. README.md +98 -0
  2. config.json +45 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +23 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-large-patch16-224
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - imagefolder
9
+ metrics:
10
+ - accuracy
11
+ - f1
12
+ - precision
13
+ - recall
14
+ model-index:
15
+ - name: wool-classifier-finetuned
16
+ results:
17
+ - task:
18
+ name: Image Classification
19
+ type: image-classification
20
+ dataset:
21
+ name: imagefolder
22
+ type: imagefolder
23
+ config: default
24
+ split: validation
25
+ args: default
26
+ metrics:
27
+ - name: Accuracy
28
+ type: accuracy
29
+ value: 0.7777777777777778
30
+ - name: F1
31
+ type: f1
32
+ value: 0.7681561135293505
33
+ - name: Precision
34
+ type: precision
35
+ value: 0.7982514741774002
36
+ - name: Recall
37
+ type: recall
38
+ value: 0.7777777777777778
39
+ ---
40
+
41
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
42
+ should probably proofread and complete it, then remove this comment. -->
43
+
44
+ # wool-classifier-finetuned
45
+
46
+ This model is a fine-tuned version of [google/vit-large-patch16-224](https://huggingface.co/google/vit-large-patch16-224) on the imagefolder dataset.
47
+ It achieves the following results on the evaluation set:
48
+ - Loss: 0.6767
49
+ - Accuracy: 0.7778
50
+ - F1: 0.7682
51
+ - Precision: 0.7983
52
+ - Recall: 0.7778
53
+
54
+ ## Model description
55
+
56
+ More information needed
57
+
58
+ ## Intended uses & limitations
59
+
60
+ More information needed
61
+
62
+ ## Training and evaluation data
63
+
64
+ More information needed
65
+
66
+ ## Training procedure
67
+
68
+ ### Training hyperparameters
69
+
70
+ The following hyperparameters were used during training:
71
+ - learning_rate: 3e-05
72
+ - train_batch_size: 16
73
+ - eval_batch_size: 8
74
+ - seed: 42
75
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
76
+ - lr_scheduler_type: linear
77
+ - num_epochs: 15
78
+
79
+ ### Training results
80
+
81
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
82
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
83
+ | 0.7426 | 1.0 | 45 | 0.7618 | 0.7284 | 0.7285 | 0.7981 | 0.7284 |
84
+ | 0.6744 | 2.0 | 90 | 0.8640 | 0.7284 | 0.7064 | 0.7190 | 0.7284 |
85
+ | 0.4237 | 3.0 | 135 | 0.6118 | 0.8148 | 0.8115 | 0.8309 | 0.8148 |
86
+ | 0.473 | 4.0 | 180 | 0.6418 | 0.8025 | 0.7843 | 0.8481 | 0.8025 |
87
+ | 0.3436 | 5.0 | 225 | 0.4420 | 0.8765 | 0.8606 | 0.8928 | 0.8765 |
88
+ | 0.2142 | 6.0 | 270 | 0.7575 | 0.7654 | 0.7508 | 0.8080 | 0.7654 |
89
+ | 0.2729 | 7.0 | 315 | 0.6660 | 0.7901 | 0.7768 | 0.8183 | 0.7901 |
90
+ | 0.3112 | 8.0 | 360 | 0.6767 | 0.7778 | 0.7682 | 0.7983 | 0.7778 |
91
+
92
+
93
+ ### Framework versions
94
+
95
+ - Transformers 4.55.4
96
+ - Pytorch 2.8.0+cu126
97
+ - Datasets 4.0.0
98
+ - Tokenizers 0.21.4
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ViTForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "encoder_stride": 16,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 1024,
10
+ "id2label": {
11
+ "0": "CHECK - V",
12
+ "1": "GESSATI - V",
13
+ "2": "MICRO EFFETTI - V",
14
+ "3": "PIED DE POULE - V",
15
+ "4": "PRINCIPE DI GALLES - V",
16
+ "5": "QUADRETTO - V",
17
+ "6": "SPIGA - V",
18
+ "7": "UNITI"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 4096,
23
+ "label2id": {
24
+ "CHECK - V": 0,
25
+ "GESSATI - V": 1,
26
+ "MICRO EFFETTI - V": 2,
27
+ "PIED DE POULE - V": 3,
28
+ "PRINCIPE DI GALLES - V": 4,
29
+ "QUADRETTO - V": 5,
30
+ "SPIGA - V": 6,
31
+ "UNITI": 7
32
+ },
33
+ "layer_norm_eps": 1e-12,
34
+ "model_type": "vit",
35
+ "num_attention_heads": 16,
36
+ "num_channels": 3,
37
+ "num_hidden_layers": 24,
38
+ "patch_size": 16,
39
+ "pooler_act": "tanh",
40
+ "pooler_output_size": 1024,
41
+ "problem_type": "single_label_classification",
42
+ "qkv_bias": true,
43
+ "torch_dtype": "float32",
44
+ "transformers_version": "4.55.4"
45
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a330ebf1ba183a3bd45fcb08fd9c816d98243414af626211a3e01b769f7f9d21
3
+ size 1213285872
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": "ViTImageProcessor",
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:3cce01b44f9423c878a2978b36c06702fdbb07aebe1c0c393103497f91449052
3
+ size 5713