Netnoy17 commited on
Commit
ed40470
1 Parent(s): 4a2fa9f

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
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: Chess_images_classifier
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.9
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
+ # Chess_images_classifier
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: 1.0591
36
+ - Accuracy: 0.9
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: 5e-05
56
+ - train_batch_size: 16
57
+ - eval_batch_size: 16
58
+ - seed: 42
59
+ - gradient_accumulation_steps: 4
60
+ - total_train_batch_size: 64
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - lr_scheduler_warmup_ratio: 0.1
64
+ - num_epochs: 20
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | No log | 1.0 | 2 | 1.7966 | 0.1 |
71
+ | No log | 2.0 | 4 | 1.7835 | 0.2 |
72
+ | No log | 3.0 | 6 | 1.7547 | 0.2667 |
73
+ | No log | 4.0 | 8 | 1.7069 | 0.3667 |
74
+ | 1.7198 | 5.0 | 10 | 1.6416 | 0.3667 |
75
+ | 1.7198 | 6.0 | 12 | 1.5306 | 0.4 |
76
+ | 1.7198 | 7.0 | 14 | 1.4958 | 0.5333 |
77
+ | 1.7198 | 8.0 | 16 | 1.4440 | 0.5333 |
78
+ | 1.7198 | 9.0 | 18 | 1.3930 | 0.6 |
79
+ | 1.3635 | 10.0 | 20 | 1.2984 | 0.7333 |
80
+ | 1.3635 | 11.0 | 22 | 1.3484 | 0.7333 |
81
+ | 1.3635 | 12.0 | 24 | 1.2727 | 0.8333 |
82
+ | 1.3635 | 13.0 | 26 | 1.1674 | 0.8333 |
83
+ | 1.3635 | 14.0 | 28 | 1.1443 | 0.8667 |
84
+ | 1.0916 | 15.0 | 30 | 1.1607 | 0.9 |
85
+ | 1.0916 | 16.0 | 32 | 1.1076 | 0.8667 |
86
+ | 1.0916 | 17.0 | 34 | 1.0670 | 0.9667 |
87
+ | 1.0916 | 18.0 | 36 | 1.0694 | 0.9333 |
88
+ | 1.0916 | 19.0 | 38 | 1.0874 | 0.9 |
89
+ | 0.9397 | 20.0 | 40 | 1.0591 | 0.9 |
90
+
91
+
92
+ ### Framework versions
93
+
94
+ - Transformers 4.38.2
95
+ - Pytorch 2.2.1+cu121
96
+ - Datasets 2.18.0
97
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "Black king",
13
+ "1": "Black knight",
14
+ "2": "Black queen",
15
+ "3": "White king",
16
+ "4": "White knight",
17
+ "5": "White queen"
18
+ },
19
+ "image_size": 224,
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "Black king": "0",
24
+ "Black knight": "1",
25
+ "Black queen": "2",
26
+ "White king": "3",
27
+ "White knight": "4",
28
+ "White queen": "5"
29
+ },
30
+ "layer_norm_eps": 1e-12,
31
+ "model_type": "vit",
32
+ "num_attention_heads": 12,
33
+ "num_channels": 3,
34
+ "num_hidden_layers": 12,
35
+ "patch_size": 16,
36
+ "problem_type": "single_label_classification",
37
+ "qkv_bias": true,
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.38.2"
40
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68a319be52207b4696768df1d3da8998d03b7d1a70615e86a448f1401a40b471
3
+ size 343236280
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
+ }
runs/Apr04_17-40-50_89459fbb1746/events.out.tfevents.1712252451.89459fbb1746.121.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8687bedfd452026b7aceaf9d3c2952b6463c98bd9f6097eabd45487900bf6c2d
3
+ size 12338
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:075d2d87d0804d691bc848683fa6c51a9ccad864919273872e42d9eabc19fb8d
3
+ size 4920