nhanv
commited on
Commit
•
b9a3ab8
1
Parent(s):
ecb013a
upload
Browse files- README.md +85 -0
- all_results.json +12 -0
- config.json +63 -0
- emissions.csv +2 -0
- eval_results.json +8 -0
- preprocessor_config.json +20 -0
- pytorch_model.bin +3 -0
- train_results.json +7 -0
- trainer_state.json +0 -0
README.md
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- image-classification
|
5 |
+
- vision
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- imagefolder
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: pedestrian_age_recognition_local
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
name: Image Classification
|
16 |
+
type: image-classification
|
17 |
+
dataset:
|
18 |
+
name: imagefolder
|
19 |
+
type: imagefolder
|
20 |
+
config: default
|
21 |
+
split: train
|
22 |
+
args: default
|
23 |
+
metrics:
|
24 |
+
- name: Accuracy
|
25 |
+
type: accuracy
|
26 |
+
value: 0.8073394495412844
|
27 |
+
---
|
28 |
+
|
29 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
30 |
+
should probably proofread and complete it, then remove this comment. -->
|
31 |
+
|
32 |
+
# pedestrian_age_recognition_local
|
33 |
+
|
34 |
+
This model is a fine-tuned version of [microsoft/beit-base-patch16-224-pt22k-ft22k](https://huggingface.co/microsoft/beit-base-patch16-224-pt22k-ft22k) on the imagefolder dataset.
|
35 |
+
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 0.5004
|
37 |
+
- Accuracy: 0.8073
|
38 |
+
|
39 |
+
## Model description
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Intended uses & limitations
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Training and evaluation data
|
48 |
+
|
49 |
+
More information needed
|
50 |
+
|
51 |
+
## Training procedure
|
52 |
+
|
53 |
+
### Training hyperparameters
|
54 |
+
|
55 |
+
The following hyperparameters were used during training:
|
56 |
+
- learning_rate: 2e-05
|
57 |
+
- train_batch_size: 8
|
58 |
+
- eval_batch_size: 8
|
59 |
+
- seed: 1337
|
60 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
61 |
+
- lr_scheduler_type: linear
|
62 |
+
- num_epochs: 10.0
|
63 |
+
|
64 |
+
### Training results
|
65 |
+
|
66 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
67 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
68 |
+
| 0.8849 | 1.0 | 2008 | 0.7939 | 0.6807 |
|
69 |
+
| 0.9836 | 2.0 | 4016 | 0.6694 | 0.7336 |
|
70 |
+
| 0.8128 | 3.0 | 6024 | 0.5768 | 0.7668 |
|
71 |
+
| 0.7611 | 4.0 | 8032 | 0.5541 | 0.7833 |
|
72 |
+
| 0.6441 | 5.0 | 10040 | 0.5473 | 0.7773 |
|
73 |
+
| 0.5696 | 6.0 | 12048 | 0.5187 | 0.7971 |
|
74 |
+
| 0.6925 | 7.0 | 14056 | 0.5082 | 0.8038 |
|
75 |
+
| 0.5711 | 8.0 | 16064 | 0.5092 | 0.8098 |
|
76 |
+
| 0.7741 | 9.0 | 18072 | 0.5026 | 0.8020 |
|
77 |
+
| 0.5269 | 10.0 | 20080 | 0.5004 | 0.8073 |
|
78 |
+
|
79 |
+
|
80 |
+
### Framework versions
|
81 |
+
|
82 |
+
- Transformers 4.24.0.dev0
|
83 |
+
- Pytorch 1.12.1+cu113
|
84 |
+
- Datasets 2.6.1
|
85 |
+
- Tokenizers 0.13.1
|
all_results.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 10.0,
|
3 |
+
"eval_accuracy": 0.8073394495412844,
|
4 |
+
"eval_loss": 0.5004011988639832,
|
5 |
+
"eval_runtime": 12.5118,
|
6 |
+
"eval_samples_per_second": 226.507,
|
7 |
+
"eval_steps_per_second": 28.373,
|
8 |
+
"train_loss": 0.6558418143674197,
|
9 |
+
"train_runtime": 2165.352,
|
10 |
+
"train_samples_per_second": 74.163,
|
11 |
+
"train_steps_per_second": 9.273
|
12 |
+
}
|
config.json
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/beit-base-patch16-224-pt22k-ft22k",
|
3 |
+
"architectures": [
|
4 |
+
"BeitForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"auxiliary_channels": 256,
|
8 |
+
"auxiliary_concat_input": false,
|
9 |
+
"auxiliary_loss_weight": 0.4,
|
10 |
+
"auxiliary_num_convs": 1,
|
11 |
+
"drop_path_rate": 0.1,
|
12 |
+
"finetuning_task": "image-classification",
|
13 |
+
"hidden_act": "gelu",
|
14 |
+
"hidden_dropout_prob": 0.0,
|
15 |
+
"hidden_size": 768,
|
16 |
+
"id2label": {
|
17 |
+
"0": "Age16-30",
|
18 |
+
"1": "Age31-45",
|
19 |
+
"2": "Age46-60",
|
20 |
+
"3": "AgeAbove60",
|
21 |
+
"4": "AgeLess15"
|
22 |
+
},
|
23 |
+
"image_size": 224,
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"intermediate_size": 3072,
|
26 |
+
"label2id": {
|
27 |
+
"Age16-30": "0",
|
28 |
+
"Age31-45": "1",
|
29 |
+
"Age46-60": "2",
|
30 |
+
"AgeAbove60": "3",
|
31 |
+
"AgeLess15": "4"
|
32 |
+
},
|
33 |
+
"layer_norm_eps": 1e-12,
|
34 |
+
"layer_scale_init_value": 0.1,
|
35 |
+
"model_type": "beit",
|
36 |
+
"num_attention_heads": 12,
|
37 |
+
"num_channels": 3,
|
38 |
+
"num_hidden_layers": 12,
|
39 |
+
"out_indices": [
|
40 |
+
3,
|
41 |
+
5,
|
42 |
+
7,
|
43 |
+
11
|
44 |
+
],
|
45 |
+
"patch_size": 16,
|
46 |
+
"pool_scales": [
|
47 |
+
1,
|
48 |
+
2,
|
49 |
+
3,
|
50 |
+
6
|
51 |
+
],
|
52 |
+
"problem_type": "single_label_classification",
|
53 |
+
"semantic_loss_ignore_index": 255,
|
54 |
+
"torch_dtype": "float32",
|
55 |
+
"transformers_version": "4.24.0.dev0",
|
56 |
+
"use_absolute_position_embeddings": false,
|
57 |
+
"use_auxiliary_head": true,
|
58 |
+
"use_mask_token": false,
|
59 |
+
"use_mean_pooling": true,
|
60 |
+
"use_relative_position_bias": true,
|
61 |
+
"use_shared_relative_position_bias": false,
|
62 |
+
"vocab_size": 8192
|
63 |
+
}
|
emissions.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
timestamp,experiment_id,project_name,duration,emissions,energy_consumed,country_name,country_iso_code,region,on_cloud,cloud_provider,cloud_region
|
2 |
+
2023-01-09T04:16:19,62af6737-a71e-47e2-a59d-8f5e4546552b,codecarbon,2168.368220806122,0.15662584062475365,0.2143468409392291,Vietnam,VNM,hanoi,N,,
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 10.0,
|
3 |
+
"eval_accuracy": 0.8073394495412844,
|
4 |
+
"eval_loss": 0.5004011988639832,
|
5 |
+
"eval_runtime": 12.5118,
|
6 |
+
"eval_samples_per_second": 226.507,
|
7 |
+
"eval_steps_per_second": 28.373
|
8 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": 224,
|
3 |
+
"do_center_crop": false,
|
4 |
+
"do_normalize": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"feature_extractor_type": "BeitFeatureExtractor",
|
7 |
+
"image_mean": [
|
8 |
+
0.5,
|
9 |
+
0.5,
|
10 |
+
0.5
|
11 |
+
],
|
12 |
+
"image_std": [
|
13 |
+
0.5,
|
14 |
+
0.5,
|
15 |
+
0.5
|
16 |
+
],
|
17 |
+
"reduce_labels": false,
|
18 |
+
"resample": 2,
|
19 |
+
"size": 224
|
20 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82e962817857e71e644953ae8a458db36db31a3d5293289b6acd5b49317524ad
|
3 |
+
size 346867691
|
train_results.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 10.0,
|
3 |
+
"train_loss": 0.6558418143674197,
|
4 |
+
"train_runtime": 2165.352,
|
5 |
+
"train_samples_per_second": 74.163,
|
6 |
+
"train_steps_per_second": 9.273
|
7 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|