mikecho commited on
Commit
134aa74
1 Parent(s): 050c9df

Model save

Browse files
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: NTQAI/pedestrian_gender_recognition
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: NTQAI_pedestrian_gender_recognition_v1
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
+ # NTQAI_pedestrian_gender_recognition_v1
17
+
18
+ This model is a fine-tuned version of [NTQAI/pedestrian_gender_recognition](https://huggingface.co/NTQAI/pedestrian_gender_recognition) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.1918
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: 9e-05
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 16
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 4
45
+ - total_train_batch_size: 64
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 3
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
55
+ | 0.4561 | 0.96 | 12 | 0.2296 | 0.92 |
56
+ | 0.3486 | 2.0 | 25 | 0.1873 | 0.93 |
57
+ | 0.2995 | 2.88 | 36 | 0.1918 | 0.92 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.38.2
63
+ - Pytorch 2.2.1+cu121
64
+ - Datasets 2.18.0
65
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "NTQAI/pedestrian_gender_recognition",
3
+ "add_fpn": false,
4
+ "architectures": [
5
+ "BeitForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "auxiliary_channels": 256,
9
+ "auxiliary_concat_input": false,
10
+ "auxiliary_loss_weight": 0.4,
11
+ "auxiliary_num_convs": 1,
12
+ "drop_path_rate": 0.1,
13
+ "finetuning_task": "image-classification",
14
+ "hidden_act": "gelu",
15
+ "hidden_dropout_prob": 0.0,
16
+ "hidden_size": 768,
17
+ "id2label": {
18
+ "0": "Female",
19
+ "1": "Male"
20
+ },
21
+ "image_size": 224,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "Female": 0,
26
+ "Male": 1
27
+ },
28
+ "layer_norm_eps": 1e-12,
29
+ "layer_scale_init_value": 0.1,
30
+ "model_type": "beit",
31
+ "num_attention_heads": 12,
32
+ "num_channels": 3,
33
+ "num_hidden_layers": 12,
34
+ "out_features": [
35
+ "stage3",
36
+ "stage5",
37
+ "stage7",
38
+ "stage11"
39
+ ],
40
+ "out_indices": [
41
+ 3,
42
+ 5,
43
+ 7,
44
+ 11
45
+ ],
46
+ "patch_size": 16,
47
+ "pool_scales": [
48
+ 1,
49
+ 2,
50
+ 3,
51
+ 6
52
+ ],
53
+ "problem_type": "single_label_classification",
54
+ "reshape_hidden_states": true,
55
+ "semantic_loss_ignore_index": 255,
56
+ "stage_names": [
57
+ "stem",
58
+ "stage1",
59
+ "stage2",
60
+ "stage3",
61
+ "stage4",
62
+ "stage5",
63
+ "stage6",
64
+ "stage7",
65
+ "stage8",
66
+ "stage9",
67
+ "stage10",
68
+ "stage11",
69
+ "stage12"
70
+ ],
71
+ "torch_dtype": "float32",
72
+ "transformers_version": "4.38.2",
73
+ "use_absolute_position_embeddings": false,
74
+ "use_auxiliary_head": true,
75
+ "use_mask_token": false,
76
+ "use_mean_pooling": true,
77
+ "use_relative_position_bias": true,
78
+ "use_shared_relative_position_bias": false,
79
+ "vocab_size": 8192
80
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:715b06b47812bbec40a96bb0fee1ca165353987dae6f333888ad643dfb663ff0
3
+ size 343080328
preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": false,
7
+ "do_normalize": true,
8
+ "do_reduce_labels": false,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "image_processor_type": "BeitFeatureExtractor",
17
+ "image_std": [
18
+ 0.5,
19
+ 0.5,
20
+ 0.5
21
+ ],
22
+ "resample": 2,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "height": 224,
26
+ "width": 224
27
+ }
28
+ }
runs/Mar20_01-39-33_e7588fdd1fb5/events.out.tfevents.1710898821.e7588fdd1fb5.860.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:913c9cd6f1099c91e4dcb3c7fb9f0e166d4f5e5104cbffcdccfb7e2acbe2ada1
3
+ size 5639
runs/Mar20_01-51-10_e7588fdd1fb5/events.out.tfevents.1710899496.e7588fdd1fb5.860.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8143046511c01943f30a4b23f58c0761f744a3341a0c37e4a7649ae880e1da8
3
+ size 7559
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab232f19758544bdbae7e122237816b22e09313610f12ccd8f2fe667175c8a0a
3
+ size 4984