heado commited on
Commit
5c81dec
1 Parent(s): aaddbcb
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - HHD
6
+ - 3_class
7
+ - ViT
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: ViT_face
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # ViT_face
18
+
19
+ 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 face dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.6752
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: 32
42
+ - eval_batch_size: 32
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 10
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss |
51
+ |:-------------:|:-----:|:----:|:---------------:|
52
+ | No log | 1.0 | 38 | 1.0114 |
53
+ | No log | 2.0 | 76 | 0.8914 |
54
+ | No log | 3.0 | 114 | 0.7663 |
55
+ | No log | 4.0 | 152 | 0.6776 |
56
+ | No log | 5.0 | 190 | 0.6646 |
57
+ | No log | 6.0 | 228 | 0.6212 |
58
+ | No log | 7.0 | 266 | 0.6771 |
59
+ | No log | 8.0 | 304 | 0.6733 |
60
+ | No log | 9.0 | 342 | 0.6735 |
61
+ | No log | 10.0 | 380 | 0.6752 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.42.4
67
+ - Pytorch 2.4.0+cu121
68
+ - Datasets 2.21.0
69
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "\u1105\u1172\u110c\u116e\u11ab\u110b\u1167\u11af",
13
+ "1": "\u1109\u1169\u11bc\u110c\u116e\u11bc\u1100\u1175",
14
+ "2": "\u1112\u1167\u11ab\u1107\u1175\u11ab"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "\u1105\u1172\u110c\u116e\u11ab\u110b\u1167\u11af": "0",
21
+ "\u1109\u1169\u11bc\u110c\u116e\u11bc\u1100\u1175": "1",
22
+ "\u1112\u1167\u11ab\u1107\u1175\u11ab": "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.42.4"
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d38dd2fda87cdb5a8139e8d45754d30e847610542b3f8825b30cb50c179099d7
3
+ size 343227052
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": "ViTFeatureExtractor",
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/Sep03_01-50-00_80c91f0ad5d6/events.out.tfevents.1725328298.80c91f0ad5d6.2158.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6dd0e58726cd10771b510ad049e50f96d67b5c0955365465337710c388bb6c2
3
+ size 5079
runs/Sep03_01-50-00_80c91f0ad5d6/events.out.tfevents.1725329000.80c91f0ad5d6.2158.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:473b2b2de283670262468e3b4991309d1ba8ce63edf868a472ae5f6ffc4ea6f1
3
+ size 5079
runs/Sep03_02-09-44_80c91f0ad5d6/events.out.tfevents.1725329388.80c91f0ad5d6.2158.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:064a22f1b547d4de7b371d68682617a72bae48684f54321fb647aa31e6b04b54
3
+ size 5079
runs/Sep03_02-11-07_80c91f0ad5d6/events.out.tfevents.1725329471.80c91f0ad5d6.2158.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20887d25576aebefb422452584bb1db98855b5ac2016c5e8148e936131b8b30a
3
+ size 8128
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:712274555bb8c78f8b705792960dfcd367fe1795cf98395a5e213bcaf1695782
3
+ size 5112