zkdeng commited on
Commit
5da0262
1 Parent(s): 6acc574

End of training

Browse files
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: vit-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
+ # vit-base-patch16-224-finetuned-dangerousSpiders
15
+
16
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - eval_loss: 0.1685
19
+ - eval_accuracy: 0.94
20
+ - eval_precision: 0.9434
21
+ - eval_recall: 0.9392
22
+ - eval_f1: 0.9398
23
+ - eval_runtime: 4.6226
24
+ - eval_samples_per_second: 43.266
25
+ - eval_steps_per_second: 2.812
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.94,
4
+ "eval_f1": 0.9397832195905259,
5
+ "eval_loss": 0.1684570461511612,
6
+ "eval_precision": 0.9434343434343434,
7
+ "eval_recall": 0.9391756702681072,
8
+ "eval_runtime": 4.6226,
9
+ "eval_samples_per_second": 43.266,
10
+ "eval_steps_per_second": 2.812,
11
+ "train_loss": 0.2957918119430542,
12
+ "train_runtime": 131.7828,
13
+ "train_samples_per_second": 24.282,
14
+ "train_steps_per_second": 0.379
15
+ }
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-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.94,
3
+ "eval_f1": 0.9397832195905259,
4
+ "eval_loss": 0.1684570461511612,
5
+ "eval_precision": 0.9434343434343434,
6
+ "eval_recall": 0.9391756702681072,
7
+ "eval_runtime": 4.6226,
8
+ "eval_samples_per_second": 43.266,
9
+ "eval_steps_per_second": 2.812
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:a7db4f9c3ab25c10f5fafc0d94de94cc56d8bcf1f641f0f373227a5c20ecd176
3
+ size 343266410
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "train_loss": 0.2957918119430542,
4
+ "train_runtime": 131.7828,
5
+ "train_samples_per_second": 24.282,
6
+ "train_steps_per_second": 0.379
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.93,
3
+ "best_model_checkpoint": "vit-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.56,
15
+ "step": 10
16
+ },
17
+ {
18
+ "epoch": 0.8,
19
+ "learning_rate": 3.3333333333333335e-05,
20
+ "loss": 0.3134,
21
+ "step": 20
22
+ },
23
+ {
24
+ "epoch": 1.0,
25
+ "eval_accuracy": 0.905,
26
+ "eval_f1": 0.903236484937995,
27
+ "eval_loss": 0.2042059749364853,
28
+ "eval_precision": 0.9145833333333333,
29
+ "eval_recall": 0.8999598030348709,
30
+ "eval_runtime": 6.423,
31
+ "eval_samples_per_second": 31.138,
32
+ "eval_steps_per_second": 2.024,
33
+ "step": 25
34
+ },
35
+ {
36
+ "epoch": 1.2,
37
+ "learning_rate": 2.2222222222222223e-05,
38
+ "loss": 0.2378,
39
+ "step": 30
40
+ },
41
+ {
42
+ "epoch": 1.6,
43
+ "learning_rate": 1.1111111111111112e-05,
44
+ "loss": 0.1768,
45
+ "step": 40
46
+ },
47
+ {
48
+ "epoch": 2.0,
49
+ "learning_rate": 0.0,
50
+ "loss": 0.191,
51
+ "step": 50
52
+ },
53
+ {
54
+ "epoch": 2.0,
55
+ "eval_accuracy": 0.93,
56
+ "eval_f1": 0.9291426257718393,
57
+ "eval_loss": 0.1735258251428604,
58
+ "eval_precision": 0.9345268542199489,
59
+ "eval_recall": 0.9268415234649784,
60
+ "eval_runtime": 4.8436,
61
+ "eval_samples_per_second": 41.291,
62
+ "eval_steps_per_second": 2.684,
63
+ "step": 50
64
+ },
65
+ {
66
+ "epoch": 2.0,
67
+ "step": 50,
68
+ "total_flos": 2.479743667666944e+17,
69
+ "train_loss": 0.2957918119430542,
70
+ "train_runtime": 131.7828,
71
+ "train_samples_per_second": 24.282,
72
+ "train_steps_per_second": 0.379
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:d8f48136a8b8295e4dd7c6963f37d958eb54f64ade23baea59fa907e790523ce
3
+ size 4536