damhyang
Browse files- README.md +69 -0
- config.json +34 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Sep03_01-51-46_80e8726d91fc/events.out.tfevents.1725328311.80e8726d91fc.172.0 +3 -0
- runs/Sep03_02-17-02_80e8726d91fc/events.out.tfevents.1725329825.80e8726d91fc.172.1 +3 -0
- runs/Sep03_02-20-06_80e8726d91fc/events.out.tfevents.1725330011.80e8726d91fc.172.2 +3 -0
- training_args.bin +3 -0
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 |
+
- KDH
|
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.2726
|
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 | 0.8665 |
|
53 |
+
| No log | 2.0 | 76 | 0.6146 |
|
54 |
+
| No log | 3.0 | 114 | 0.4444 |
|
55 |
+
| No log | 4.0 | 152 | 0.3421 |
|
56 |
+
| No log | 5.0 | 190 | 0.3062 |
|
57 |
+
| No log | 6.0 | 228 | 0.3003 |
|
58 |
+
| No log | 7.0 | 266 | 0.2770 |
|
59 |
+
| No log | 8.0 | 304 | 0.2762 |
|
60 |
+
| No log | 9.0 | 342 | 0.2700 |
|
61 |
+
| No log | 10.0 | 380 | 0.2726 |
|
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": "\u110c\u1169\u110b\u1175",
|
13 |
+
"1": "\u110f\u1161\u1105\u1175\u1102\u1161",
|
14 |
+
"2": "\u1110\u1162\u110b\u1167\u11ab"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"\u110c\u1169\u110b\u1175": "0",
|
21 |
+
"\u110f\u1161\u1105\u1175\u1102\u1161": "1",
|
22 |
+
"\u1110\u1162\u110b\u1167\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:e0597e5b16736b4a8c07a01f7e6148b576db73faaa8d0107eb0259a77227e2f1
|
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-51-46_80e8726d91fc/events.out.tfevents.1725328311.80e8726d91fc.172.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3f092bc67767a254894fdd8ee62134bacdfa7f15cf5ceadcbdb242ec0e1b25e1
|
3 |
+
size 4995
|
runs/Sep03_02-17-02_80e8726d91fc/events.out.tfevents.1725329825.80e8726d91fc.172.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d38de86c8066e663ffde9c6cfe25773dbf941abe83e831c3fac5721cbda483f0
|
3 |
+
size 4995
|
runs/Sep03_02-20-06_80e8726d91fc/events.out.tfevents.1725330011.80e8726d91fc.172.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:16d822bbc0bb7de7f7ed5dc608c3733bf87e970219668b68e5cfe9a89307c974
|
3 |
+
size 8044
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:43a37e0a4da01bde18838c388d29e43587b016e36a3d0893e347b15ada9f910c
|
3 |
+
size 5112
|