YufeiWeng commited on
Commit
93d46de
1 Parent(s): dfeafaa

End of training

Browse files
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  license: apache-2.0
3
- base_model: google/vit-base-patch16-224-in21k
4
  tags:
5
  - image-classification
6
  - vision
@@ -17,9 +17,9 @@ should probably proofread and complete it, then remove this comment. -->
17
 
18
  # donut-base-beans
19
 
20
- This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
21
  It achieves the following results on the evaluation set:
22
- - Loss: 0.0548
23
  - F1: 0.3303
24
 
25
  ## Model description
@@ -45,22 +45,17 @@ The following hyperparameters were used during training:
45
  - seed: 1337
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
  - lr_scheduler_type: linear
48
- - num_epochs: 10.0
49
 
50
  ### Training results
51
 
52
- | Training Loss | Epoch | Step | Accuracy | Validation Loss |
53
- |:-------------:|:-----:|:-----:|:--------:|:---------------:|
54
- | 0.0769 | 1.0 | 6733 | 0.4973 | 0.0657 |
55
- | 0.0729 | 2.0 | 13466 | 0.4973 | 0.0613 |
56
- | 0.0564 | 3.0 | 20199 | 0.4973 | 0.0621 |
57
- | 0.0534 | 4.0 | 26932 | 0.4973 | 0.0572 |
58
- | 0.0511 | 5.0 | 33665 | 0.4973 | 0.0562 |
59
- | 0.0659 | 6.0 | 40398 | 0.4973 | 0.0577 |
60
- | 0.0623 | 7.0 | 47131 | 0.4973 | 0.0567 |
61
- | 0.0575 | 8.0 | 53864 | 0.4973 | 0.0555 |
62
- | 0.048 | 9.0 | 60597 | 0.4973 | 0.0548 |
63
- | 0.0389 | 10.0 | 67330 | 0.4973 | 0.0548 |
64
 
65
 
66
  ### Framework versions
 
1
  ---
2
  license: apache-2.0
3
+ base_model: microsoft/beit-base-patch16-224-pt22k-ft22k
4
  tags:
5
  - image-classification
6
  - vision
 
17
 
18
  # donut-base-beans
19
 
20
+ 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 an unknown dataset.
21
  It achieves the following results on the evaluation set:
22
+ - Loss: 0.0517
23
  - F1: 0.3303
24
 
25
  ## Model description
 
45
  - seed: 1337
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
  - lr_scheduler_type: linear
48
+ - num_epochs: 5.0
49
 
50
  ### Training results
51
 
52
+ | Training Loss | Epoch | Step | F1 | Validation Loss |
53
+ |:-------------:|:-----:|:-----:|:---:|:---------------:|
54
+ | 0.0672 | 1.0 | 13466 | 0.0 | 0.0696 |
55
+ | 0.0612 | 2.0 | 26932 | 0.0 | 0.0588 |
56
+ | 0.0496 | 3.0 | 40398 | 0.0 | 0.0556 |
57
+ | 0.0443 | 4.0 | 53864 | 0.0 | 0.0535 |
58
+ | 0.0683 | 5.0 | 67330 | 0.0 | 0.0517 |
 
 
 
 
 
59
 
60
 
61
  ### Framework versions
all_results.json CHANGED
@@ -1,14 +1,13 @@
1
  {
2
- "epoch": 10.0,
3
- "eval_accuracy": 0.49727767695099817,
4
  "eval_f1": 0.33031292965957215,
5
- "eval_loss": 0.05480470508337021,
6
- "eval_runtime": 512.1974,
7
- "eval_samples_per_second": 74.227,
8
- "eval_steps_per_second": 4.641,
9
- "total_flos": 1.6694802102985576e+20,
10
  "train_loss": 0.0,
11
- "train_runtime": 0.0767,
12
- "train_samples_per_second": 28073613.463,
13
- "train_steps_per_second": 877361.502
14
  }
 
1
  {
2
+ "epoch": 5.0,
 
3
  "eval_f1": 0.33031292965957215,
4
+ "eval_loss": 0.05167969688773155,
5
+ "eval_runtime": 516.9756,
6
+ "eval_samples_per_second": 73.541,
7
+ "eval_steps_per_second": 4.598,
8
+ "total_flos": 8.34383324330106e+19,
9
  "train_loss": 0.0,
10
+ "train_runtime": 0.0747,
11
+ "train_samples_per_second": 14413399.944,
12
+ "train_steps_per_second": 900900.217
13
  }
config.json CHANGED
@@ -1,10 +1,15 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
 
3
  "architectures": [
4
- "ViTForImageClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.0,
7
- "encoder_stride": 16,
 
 
 
 
8
  "finetuning_task": "image-classification",
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.0,
@@ -19,13 +24,49 @@
19
  "Value(dtype='int64', id=None)": "0"
20
  },
21
  "layer_norm_eps": 1e-12,
22
- "model_type": "vit",
 
23
  "num_attention_heads": 12,
24
  "num_channels": 3,
25
  "num_hidden_layers": 12,
 
 
 
 
 
 
26
  "patch_size": 16,
 
 
 
 
 
 
27
  "problem_type": "regression",
28
- "qkv_bias": true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  "torch_dtype": "float32",
30
- "transformers_version": "4.43.0.dev0"
 
 
 
 
 
 
 
31
  }
 
1
  {
2
+ "_name_or_path": "microsoft/beit-base-patch16-224-pt22k-ft22k",
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,
 
24
  "Value(dtype='int64', id=None)": "0"
25
  },
26
  "layer_norm_eps": 1e-12,
27
+ "layer_scale_init_value": 0.1,
28
+ "model_type": "beit",
29
  "num_attention_heads": 12,
30
  "num_channels": 3,
31
  "num_hidden_layers": 12,
32
+ "out_features": [
33
+ "stage12"
34
+ ],
35
+ "out_indices": [
36
+ 12
37
+ ],
38
  "patch_size": 16,
39
+ "pool_scales": [
40
+ 1,
41
+ 2,
42
+ 3,
43
+ 6
44
+ ],
45
  "problem_type": "regression",
46
+ "reshape_hidden_states": true,
47
+ "semantic_loss_ignore_index": 255,
48
+ "stage_names": [
49
+ "stem",
50
+ "stage1",
51
+ "stage2",
52
+ "stage3",
53
+ "stage4",
54
+ "stage5",
55
+ "stage6",
56
+ "stage7",
57
+ "stage8",
58
+ "stage9",
59
+ "stage10",
60
+ "stage11",
61
+ "stage12"
62
+ ],
63
  "torch_dtype": "float32",
64
+ "transformers_version": "4.43.0.dev0",
65
+ "use_absolute_position_embeddings": false,
66
+ "use_auxiliary_head": true,
67
+ "use_mask_token": false,
68
+ "use_mean_pooling": true,
69
+ "use_relative_position_bias": true,
70
+ "use_shared_relative_position_bias": false,
71
+ "vocab_size": 8192
72
  }
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 10.0,
3
  "eval_f1": 0.33031292965957215,
4
- "eval_loss": 0.05480470508337021,
5
- "eval_runtime": 512.1974,
6
- "eval_samples_per_second": 74.227,
7
- "eval_steps_per_second": 4.641
8
  }
 
1
  {
2
+ "epoch": 5.0,
3
  "eval_f1": 0.33031292965957215,
4
+ "eval_loss": 0.05167969688773155,
5
+ "eval_runtime": 516.9756,
6
+ "eval_samples_per_second": 73.541,
7
+ "eval_steps_per_second": 4.598
8
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2561cfd7419a353fba1d1368529d633d6fb11d901bddcfe413ee3478cec81425
3
- size 343220892
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87a3e53f87c26251c9485be8d2e6b4896fb3ca5fbc1fe742353ffe4c57e091e8
3
+ size 343077252
preprocessor_config.json CHANGED
@@ -1,5 +1,11 @@
1
  {
 
 
 
 
 
2
  "do_normalize": true,
 
3
  "do_rescale": true,
4
  "do_resize": true,
5
  "image_mean": [
@@ -7,7 +13,7 @@
7
  0.5,
8
  0.5
9
  ],
10
- "image_processor_type": "ViTImageProcessor",
11
  "image_std": [
12
  0.5,
13
  0.5,
 
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": [
 
13
  0.5,
14
  0.5
15
  ],
16
+ "image_processor_type": "BeitImageProcessor",
17
  "image_std": [
18
  0.5,
19
  0.5,
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 10.0,
3
- "total_flos": 1.6694802102985576e+20,
4
  "train_loss": 0.0,
5
- "train_runtime": 0.0767,
6
- "train_samples_per_second": 28073613.463,
7
- "train_steps_per_second": 877361.502
8
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "total_flos": 8.34383324330106e+19,
4
  "train_loss": 0.0,
5
+ "train_runtime": 0.0747,
6
+ "train_samples_per_second": 14413399.944,
7
+ "train_steps_per_second": 900900.217
8
  }
trainer_state.json CHANGED
The diff for this file is too large to render. See raw diff
 
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7d8a6f533c72550417f1e253380ae12ad72153532482192012f764515f190bbf
3
  size 5304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0a2d72729478c9c56a6673fbc1a93a59085bf2829c446ff056e0e39458bcde9
3
  size 5304