End of training
Browse files- README.md +61 -0
- all_results.json +15 -0
- config.json +32 -0
- eval_results.json +10 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- train_results.json +7 -0
- trainer_state.json +82 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: facebook/deit-base-patch16-224
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: deit-base-patch16-224-finetuned-dangerousSpiders
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# deit-base-patch16-224-finetuned-dangerousSpiders
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [facebook/deit-base-patch16-224](https://huggingface.co/facebook/deit-base-patch16-224) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- eval_loss: 0.1957
|
19 |
+
- eval_accuracy: 0.915
|
20 |
+
- eval_precision: 0.8899
|
21 |
+
- eval_recall: 0.9510
|
22 |
+
- eval_f1: 0.9194
|
23 |
+
- eval_runtime: 4.9925
|
24 |
+
- eval_samples_per_second: 40.06
|
25 |
+
- eval_steps_per_second: 2.604
|
26 |
+
- step: 0
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 5e-05
|
46 |
+
- train_batch_size: 16
|
47 |
+
- eval_batch_size: 16
|
48 |
+
- seed: 42
|
49 |
+
- gradient_accumulation_steps: 4
|
50 |
+
- total_train_batch_size: 64
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- lr_scheduler_warmup_ratio: 0.1
|
54 |
+
- num_epochs: 2
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- Transformers 4.33.2
|
59 |
+
- Pytorch 2.2.0.dev20230921
|
60 |
+
- Datasets 2.14.5
|
61 |
+
- Tokenizers 0.13.3
|
all_results.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.0,
|
3 |
+
"eval_accuracy": 0.915,
|
4 |
+
"eval_f1": 0.9194312796208531,
|
5 |
+
"eval_loss": 0.19574587047100067,
|
6 |
+
"eval_precision": 0.8899082568807339,
|
7 |
+
"eval_recall": 0.9509803921568627,
|
8 |
+
"eval_runtime": 4.9925,
|
9 |
+
"eval_samples_per_second": 40.06,
|
10 |
+
"eval_steps_per_second": 2.604,
|
11 |
+
"train_loss": 0.3774217462539673,
|
12 |
+
"train_runtime": 95.667,
|
13 |
+
"train_samples_per_second": 33.449,
|
14 |
+
"train_steps_per_second": 0.523
|
15 |
+
}
|
config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/deit-base-patch16-224",
|
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": "Lactrodectus_hesperus",
|
13 |
+
"1": "Parasteatoda_tepidariorum"
|
14 |
+
},
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"Lactrodectus_hesperus": 0,
|
20 |
+
"Parasteatoda_tepidariorum": 1
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-12,
|
23 |
+
"model_type": "vit",
|
24 |
+
"num_attention_heads": 12,
|
25 |
+
"num_channels": 3,
|
26 |
+
"num_hidden_layers": 12,
|
27 |
+
"patch_size": 16,
|
28 |
+
"problem_type": "single_label_classification",
|
29 |
+
"qkv_bias": true,
|
30 |
+
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.33.2"
|
32 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"eval_accuracy": 0.915,
|
3 |
+
"eval_f1": 0.9194312796208531,
|
4 |
+
"eval_loss": 0.19574587047100067,
|
5 |
+
"eval_precision": 0.8899082568807339,
|
6 |
+
"eval_recall": 0.9509803921568627,
|
7 |
+
"eval_runtime": 4.9925,
|
8 |
+
"eval_samples_per_second": 40.06,
|
9 |
+
"eval_steps_per_second": 2.604
|
10 |
+
}
|
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": "ViTImageProcessor",
|
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 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcf2fbb4399596b4515f5f579fe128d36e3f814c5926548d17e22acef62f0221
|
3 |
+
size 343266410
|
train_results.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.0,
|
3 |
+
"train_loss": 0.3774217462539673,
|
4 |
+
"train_runtime": 95.667,
|
5 |
+
"train_samples_per_second": 33.449,
|
6 |
+
"train_steps_per_second": 0.523
|
7 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.935,
|
3 |
+
"best_model_checkpoint": "deit-base-patch16-224-finetuned-dangerousSpiders/checkpoint-50",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 50,
|
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.4,
|
13 |
+
"learning_rate": 4.4444444444444447e-05,
|
14 |
+
"loss": 0.6465,
|
15 |
+
"step": 10
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.8,
|
19 |
+
"learning_rate": 3.3333333333333335e-05,
|
20 |
+
"loss": 0.4642,
|
21 |
+
"step": 20
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 1.0,
|
25 |
+
"eval_accuracy": 0.89,
|
26 |
+
"eval_f1": 0.9035087719298246,
|
27 |
+
"eval_loss": 0.25200986862182617,
|
28 |
+
"eval_precision": 0.8512396694214877,
|
29 |
+
"eval_recall": 0.9626168224299065,
|
30 |
+
"eval_runtime": 5.3079,
|
31 |
+
"eval_samples_per_second": 37.679,
|
32 |
+
"eval_steps_per_second": 2.449,
|
33 |
+
"step": 25
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 1.2,
|
37 |
+
"learning_rate": 2.2222222222222223e-05,
|
38 |
+
"loss": 0.3005,
|
39 |
+
"step": 30
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 1.6,
|
43 |
+
"learning_rate": 1.1111111111111112e-05,
|
44 |
+
"loss": 0.2371,
|
45 |
+
"step": 40
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 2.0,
|
49 |
+
"learning_rate": 0.0,
|
50 |
+
"loss": 0.2388,
|
51 |
+
"step": 50
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 2.0,
|
55 |
+
"eval_accuracy": 0.935,
|
56 |
+
"eval_f1": 0.9406392694063926,
|
57 |
+
"eval_loss": 0.17430706322193146,
|
58 |
+
"eval_precision": 0.9196428571428571,
|
59 |
+
"eval_recall": 0.9626168224299065,
|
60 |
+
"eval_runtime": 4.9249,
|
61 |
+
"eval_samples_per_second": 40.61,
|
62 |
+
"eval_steps_per_second": 2.64,
|
63 |
+
"step": 50
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 2.0,
|
67 |
+
"step": 50,
|
68 |
+
"total_flos": 2.479743667666944e+17,
|
69 |
+
"train_loss": 0.3774217462539673,
|
70 |
+
"train_runtime": 95.667,
|
71 |
+
"train_samples_per_second": 33.449,
|
72 |
+
"train_steps_per_second": 0.523
|
73 |
+
}
|
74 |
+
],
|
75 |
+
"logging_steps": 10,
|
76 |
+
"max_steps": 50,
|
77 |
+
"num_train_epochs": 2,
|
78 |
+
"save_steps": 500,
|
79 |
+
"total_flos": 2.479743667666944e+17,
|
80 |
+
"trial_name": null,
|
81 |
+
"trial_params": null
|
82 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5688ca45b8db9d4154397e485cb2e8d1a859e515f4eee193e31f43e3c2846c1d
|
3 |
+
size 4536
|