skiba4 commited on
Commit
0ddf266
1 Parent(s): d303937

End of training

Browse files
Files changed (5) hide show
  1. README.md +99 -0
  2. config.json +36 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +22 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: ProteinClassificationModelV2
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # ProteinClassificationModelV2
17
+
18
+ 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.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.4631
21
+ - Accuracy: 0.92
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 2e-05
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 16
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 40
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
+ | 0.707 | 1.0 | 113 | 0.3861 | 0.845 |
53
+ | 0.3382 | 2.0 | 226 | 0.3137 | 0.87 |
54
+ | 0.2635 | 3.0 | 339 | 0.2881 | 0.885 |
55
+ | 0.2469 | 4.0 | 452 | 0.3090 | 0.88 |
56
+ | 0.1995 | 5.0 | 565 | 0.2577 | 0.92 |
57
+ | 0.1869 | 6.0 | 678 | 0.2783 | 0.91 |
58
+ | 0.1799 | 7.0 | 791 | 0.2146 | 0.925 |
59
+ | 0.1376 | 8.0 | 904 | 0.3013 | 0.89 |
60
+ | 0.1079 | 9.0 | 1017 | 0.4004 | 0.885 |
61
+ | 0.1207 | 10.0 | 1130 | 0.5334 | 0.85 |
62
+ | 0.089 | 11.0 | 1243 | 0.3145 | 0.93 |
63
+ | 0.1056 | 12.0 | 1356 | 0.3250 | 0.9 |
64
+ | 0.1087 | 13.0 | 1469 | 0.4588 | 0.89 |
65
+ | 0.0746 | 14.0 | 1582 | 0.3866 | 0.895 |
66
+ | 0.081 | 15.0 | 1695 | 0.3356 | 0.905 |
67
+ | 0.0539 | 16.0 | 1808 | 0.5468 | 0.89 |
68
+ | 0.0772 | 17.0 | 1921 | 0.4060 | 0.895 |
69
+ | 0.0729 | 18.0 | 2034 | 0.5682 | 0.875 |
70
+ | 0.0525 | 19.0 | 2147 | 0.4364 | 0.905 |
71
+ | 0.0654 | 20.0 | 2260 | 0.3860 | 0.895 |
72
+ | 0.0461 | 21.0 | 2373 | 0.5711 | 0.895 |
73
+ | 0.0539 | 22.0 | 2486 | 0.6325 | 0.89 |
74
+ | 0.0309 | 23.0 | 2599 | 0.5805 | 0.885 |
75
+ | 0.0452 | 24.0 | 2712 | 0.4380 | 0.905 |
76
+ | 0.0406 | 25.0 | 2825 | 0.4316 | 0.9 |
77
+ | 0.0404 | 26.0 | 2938 | 0.4540 | 0.905 |
78
+ | 0.0288 | 27.0 | 3051 | 0.5276 | 0.915 |
79
+ | 0.0493 | 28.0 | 3164 | 0.6025 | 0.895 |
80
+ | 0.0244 | 29.0 | 3277 | 0.6028 | 0.9 |
81
+ | 0.025 | 30.0 | 3390 | 0.5895 | 0.915 |
82
+ | 0.0277 | 31.0 | 3503 | 0.4587 | 0.915 |
83
+ | 0.0284 | 32.0 | 3616 | 0.4466 | 0.915 |
84
+ | 0.029 | 33.0 | 3729 | 0.4343 | 0.905 |
85
+ | 0.021 | 34.0 | 3842 | 0.4058 | 0.915 |
86
+ | 0.012 | 35.0 | 3955 | 0.4433 | 0.92 |
87
+ | 0.0299 | 36.0 | 4068 | 0.4442 | 0.925 |
88
+ | 0.0206 | 37.0 | 4181 | 0.4736 | 0.92 |
89
+ | 0.0253 | 38.0 | 4294 | 0.5221 | 0.915 |
90
+ | 0.0147 | 39.0 | 4407 | 0.4488 | 0.92 |
91
+ | 0.0261 | 40.0 | 4520 | 0.4631 | 0.92 |
92
+
93
+
94
+ ### Framework versions
95
+
96
+ - Transformers 4.35.2
97
+ - Pytorch 2.1.0+cu121
98
+ - Datasets 2.16.0
99
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "bend",
13
+ "1": "helix",
14
+ "2": "strand",
15
+ "3": "?"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "?": 3,
22
+ "bend": 0,
23
+ "helix": 1,
24
+ "strand": 2
25
+ },
26
+ "layer_norm_eps": 1e-12,
27
+ "model_type": "vit",
28
+ "num_attention_heads": 12,
29
+ "num_channels": 3,
30
+ "num_hidden_layers": 12,
31
+ "patch_size": 16,
32
+ "problem_type": "single_label_classification",
33
+ "qkv_bias": true,
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.35.2"
36
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9425f66ac7bb8c3d0f871cf95dd5e554b5b3ab351652319f00f30bc1baab1e51
3
+ size 343230128
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": false,
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
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f9365794d9cdde40171e874fddbeb249f59aac81a592069ff872886b638d540
3
+ size 4600