amauriciogonzalez commited on
Commit
14d625f
1 Parent(s): 028fab0

End of training

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/dinov2-base
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: dinov2-base-finetuned-har
12
+ results:
13
+ - task:
14
+ name: Image Classification
15
+ type: image-classification
16
+ dataset:
17
+ name: imagefolder
18
+ type: imagefolder
19
+ config: default
20
+ split: train
21
+ args: default
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.8683473389355743
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # dinov2-base-finetuned-har
32
+
33
+ This model is a fine-tuned version of [facebook/dinov2-base](https://huggingface.co/facebook/dinov2-base) on the imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.4009
36
+ - Accuracy: 0.8683
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 5e-05
56
+ - train_batch_size: 64
57
+ - eval_batch_size: 64
58
+ - seed: 42
59
+ - gradient_accumulation_steps: 4
60
+ - total_train_batch_size: 256
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - lr_scheduler_warmup_ratio: 0.1
64
+ - num_epochs: 3
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
70
+ | 0.9308 | 0.9801 | 37 | 0.5692 | 0.8301 |
71
+ | 0.7052 | 1.9868 | 75 | 0.4806 | 0.8469 |
72
+ | 0.5414 | 2.9404 | 111 | 0.4009 | 0.8683 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.44.0
78
+ - Pytorch 2.4.0
79
+ - Datasets 2.21.0
80
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.9403973509933774,
3
+ "eval_accuracy": 0.8683473389355743,
4
+ "eval_loss": 0.4009244740009308,
5
+ "eval_runtime": 16.7576,
6
+ "eval_samples_per_second": 63.911,
7
+ "eval_steps_per_second": 1.014,
8
+ "total_flos": 2.897918409348219e+18,
9
+ "train_loss": 0.8824126113642443,
10
+ "train_runtime": 1162.7997,
11
+ "train_samples_per_second": 24.868,
12
+ "train_steps_per_second": 0.095
13
+ }
config.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/dinov2-base",
3
+ "apply_layernorm": true,
4
+ "architectures": [
5
+ "Dinov2ForImageClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "drop_path_rate": 0.0,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.0,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "calling",
14
+ "1": "clapping",
15
+ "2": "cycling",
16
+ "3": "dancing",
17
+ "4": "drinking",
18
+ "5": "eating",
19
+ "6": "fighting",
20
+ "7": "hugging",
21
+ "8": "laughing",
22
+ "9": "listening_to_music",
23
+ "10": "running",
24
+ "11": "sitting",
25
+ "12": "sleeping",
26
+ "13": "texting",
27
+ "14": "using_laptop"
28
+ },
29
+ "image_size": 518,
30
+ "initializer_range": 0.02,
31
+ "label2id": {
32
+ "calling": 0,
33
+ "clapping": 1,
34
+ "cycling": 2,
35
+ "dancing": 3,
36
+ "drinking": 4,
37
+ "eating": 5,
38
+ "fighting": 6,
39
+ "hugging": 7,
40
+ "laughing": 8,
41
+ "listening_to_music": 9,
42
+ "running": 10,
43
+ "sitting": 11,
44
+ "sleeping": 12,
45
+ "texting": 13,
46
+ "using_laptop": 14
47
+ },
48
+ "layer_norm_eps": 1e-06,
49
+ "layerscale_value": 1.0,
50
+ "mlp_ratio": 4,
51
+ "model_type": "dinov2",
52
+ "num_attention_heads": 12,
53
+ "num_channels": 3,
54
+ "num_hidden_layers": 12,
55
+ "out_features": [
56
+ "stage12"
57
+ ],
58
+ "out_indices": [
59
+ 12
60
+ ],
61
+ "patch_size": 14,
62
+ "problem_type": "single_label_classification",
63
+ "qkv_bias": true,
64
+ "reshape_hidden_states": true,
65
+ "stage_names": [
66
+ "stem",
67
+ "stage1",
68
+ "stage2",
69
+ "stage3",
70
+ "stage4",
71
+ "stage5",
72
+ "stage6",
73
+ "stage7",
74
+ "stage8",
75
+ "stage9",
76
+ "stage10",
77
+ "stage11",
78
+ "stage12"
79
+ ],
80
+ "torch_dtype": "float32",
81
+ "transformers_version": "4.44.0",
82
+ "use_swiglu_ffn": false
83
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.9403973509933774,
3
+ "eval_accuracy": 0.8683473389355743,
4
+ "eval_loss": 0.4009244740009308,
5
+ "eval_runtime": 16.7576,
6
+ "eval_samples_per_second": 63.911,
7
+ "eval_steps_per_second": 1.014
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:871810da26e66871898b38e81fdea72726776b07bc4c63245e0a7c107e40906c
3
+ size 346439852
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": true,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.485,
13
+ 0.456,
14
+ 0.406
15
+ ],
16
+ "image_processor_type": "BitImageProcessor",
17
+ "image_std": [
18
+ 0.229,
19
+ 0.224,
20
+ 0.225
21
+ ],
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "shortest_edge": 256
26
+ }
27
+ }
runs/Sep06_16-54-48_85a93488dee6/events.out.tfevents.1725641801.85a93488dee6.36.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76f53b9efabcba354c4c95aca8a50808c5b2b4321635fbe5fda5720677738482
3
+ size 9512
runs/Sep06_16-54-48_85a93488dee6/events.out.tfevents.1725643284.85a93488dee6.36.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81d888bf75523fd36c4df7e8f2a14a7f7089b5c2f9c81eaaafcaa6add5010046
3
+ size 405
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.9403973509933774,
3
+ "total_flos": 2.897918409348219e+18,
4
+ "train_loss": 0.8824126113642443,
5
+ "train_runtime": 1162.7997,
6
+ "train_samples_per_second": 24.868,
7
+ "train_steps_per_second": 0.095
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8683473389355743,
3
+ "best_model_checkpoint": "/kaggle/working/dinov2-base-finetuned-har/checkpoint-111",
4
+ "epoch": 2.9403973509933774,
5
+ "eval_steps": 500,
6
+ "global_step": 111,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.26490066225165565,
13
+ "grad_norm": 80.4668197631836,
14
+ "learning_rate": 4.166666666666667e-05,
15
+ "loss": 2.2896,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.5298013245033113,
20
+ "grad_norm": 28.893081665039062,
21
+ "learning_rate": 4.595959595959596e-05,
22
+ "loss": 1.1524,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.7947019867549668,
27
+ "grad_norm": 21.720983505249023,
28
+ "learning_rate": 4.0909090909090915e-05,
29
+ "loss": 0.9308,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.9801324503311258,
34
+ "eval_accuracy": 0.8300653594771242,
35
+ "eval_loss": 0.5691878795623779,
36
+ "eval_runtime": 22.1989,
37
+ "eval_samples_per_second": 48.246,
38
+ "eval_steps_per_second": 0.766,
39
+ "step": 37
40
+ },
41
+ {
42
+ "epoch": 1.0596026490066226,
43
+ "grad_norm": 22.94610023498535,
44
+ "learning_rate": 3.5858585858585855e-05,
45
+ "loss": 0.863,
46
+ "step": 40
47
+ },
48
+ {
49
+ "epoch": 1.3245033112582782,
50
+ "grad_norm": 24.597158432006836,
51
+ "learning_rate": 3.080808080808081e-05,
52
+ "loss": 0.7744,
53
+ "step": 50
54
+ },
55
+ {
56
+ "epoch": 1.589403973509934,
57
+ "grad_norm": 16.806970596313477,
58
+ "learning_rate": 2.575757575757576e-05,
59
+ "loss": 0.7287,
60
+ "step": 60
61
+ },
62
+ {
63
+ "epoch": 1.8543046357615895,
64
+ "grad_norm": 16.49362564086914,
65
+ "learning_rate": 2.070707070707071e-05,
66
+ "loss": 0.7052,
67
+ "step": 70
68
+ },
69
+ {
70
+ "epoch": 1.9867549668874172,
71
+ "eval_accuracy": 0.8468720821661998,
72
+ "eval_loss": 0.4805677831172943,
73
+ "eval_runtime": 15.9267,
74
+ "eval_samples_per_second": 67.246,
75
+ "eval_steps_per_second": 1.067,
76
+ "step": 75
77
+ },
78
+ {
79
+ "epoch": 2.119205298013245,
80
+ "grad_norm": 22.60504722595215,
81
+ "learning_rate": 1.565656565656566e-05,
82
+ "loss": 0.6016,
83
+ "step": 80
84
+ },
85
+ {
86
+ "epoch": 2.384105960264901,
87
+ "grad_norm": 15.832114219665527,
88
+ "learning_rate": 1.0606060606060607e-05,
89
+ "loss": 0.5896,
90
+ "step": 90
91
+ },
92
+ {
93
+ "epoch": 2.6490066225165565,
94
+ "grad_norm": 12.651689529418945,
95
+ "learning_rate": 5.555555555555556e-06,
96
+ "loss": 0.5613,
97
+ "step": 100
98
+ },
99
+ {
100
+ "epoch": 2.9139072847682117,
101
+ "grad_norm": 17.284223556518555,
102
+ "learning_rate": 5.050505050505052e-07,
103
+ "loss": 0.5414,
104
+ "step": 110
105
+ },
106
+ {
107
+ "epoch": 2.9403973509933774,
108
+ "eval_accuracy": 0.8683473389355743,
109
+ "eval_loss": 0.4009244740009308,
110
+ "eval_runtime": 15.8918,
111
+ "eval_samples_per_second": 67.393,
112
+ "eval_steps_per_second": 1.07,
113
+ "step": 111
114
+ },
115
+ {
116
+ "epoch": 2.9403973509933774,
117
+ "step": 111,
118
+ "total_flos": 2.897918409348219e+18,
119
+ "train_loss": 0.8824126113642443,
120
+ "train_runtime": 1162.7997,
121
+ "train_samples_per_second": 24.868,
122
+ "train_steps_per_second": 0.095
123
+ }
124
+ ],
125
+ "logging_steps": 10,
126
+ "max_steps": 111,
127
+ "num_input_tokens_seen": 0,
128
+ "num_train_epochs": 3,
129
+ "save_steps": 500,
130
+ "stateful_callbacks": {
131
+ "TrainerControl": {
132
+ "args": {
133
+ "should_epoch_stop": false,
134
+ "should_evaluate": false,
135
+ "should_log": false,
136
+ "should_save": true,
137
+ "should_training_stop": true
138
+ },
139
+ "attributes": {}
140
+ }
141
+ },
142
+ "total_flos": 2.897918409348219e+18,
143
+ "train_batch_size": 64,
144
+ "trial_name": null,
145
+ "trial_params": null
146
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f0466811c297431f27147c596df290edba625fff6c1885fc8e974ee18b87a00
3
+ size 5240