YufeiWeng commited on
Commit
b64eba1
·
verified ·
1 Parent(s): b40d863

Training in progress, epoch 5

Browse files
README.md CHANGED
@@ -1,5 +1,6 @@
1
  ---
2
- base_model: microsoft/dit-base-finetuned-rvlcdip
 
3
  tags:
4
  - image-classification
5
  - vision
@@ -16,9 +17,9 @@ should probably proofread and complete it, then remove this comment. -->
16
 
17
  # donut-base-beans
18
 
19
- This model is a fine-tuned version of [microsoft/dit-base-finetuned-rvlcdip](https://huggingface.co/microsoft/dit-base-finetuned-rvlcdip) on an unknown dataset.
20
  It achieves the following results on the evaluation set:
21
- - Loss: 0.0413
22
  - F1: 0.4973
23
 
24
  ## Model description
@@ -50,11 +51,11 @@ The following hyperparameters were used during training:
50
 
51
  | Training Loss | Epoch | Step | Validation Loss | F1 |
52
  |:-------------:|:-----:|:-----:|:---------------:|:------:|
53
- | 0.0584 | 1.0 | 3367 | 0.0530 | 0.4973 |
54
- | 0.0679 | 2.0 | 6734 | 0.0460 | 0.4973 |
55
- | 0.0508 | 3.0 | 10101 | 0.0452 | 0.4973 |
56
- | 0.0539 | 4.0 | 13468 | 0.0435 | 0.4973 |
57
- | 0.0568 | 5.0 | 16835 | 0.0413 | 0.4973 |
58
 
59
 
60
  ### Framework versions
 
1
  ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
  tags:
5
  - image-classification
6
  - vision
 
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.0540
23
  - F1: 0.4973
24
 
25
  ## Model description
 
51
 
52
  | Training Loss | Epoch | Step | Validation Loss | F1 |
53
  |:-------------:|:-----:|:-----:|:---------------:|:------:|
54
+ | 0.0796 | 1.0 | 3367 | 0.0687 | 0.4973 |
55
+ | 0.0611 | 2.0 | 6734 | 0.0585 | 0.4973 |
56
+ | 0.0581 | 3.0 | 10101 | 0.0591 | 0.4973 |
57
+ | 0.059 | 4.0 | 13468 | 0.0550 | 0.4973 |
58
+ | 0.0563 | 5.0 | 16835 | 0.0540 | 0.4973 |
59
 
60
 
61
  ### Framework versions
all_results.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "epoch": 5.0,
3
  "eval_f1": 0.49727767695099817,
4
- "eval_loss": 0.041273970156908035,
5
- "eval_runtime": 174.2599,
6
- "eval_samples_per_second": 218.174,
7
- "eval_steps_per_second": 3.414,
8
- "total_flos": 8.348297673446728e+19,
9
- "train_loss": 0.062463992788064436,
10
- "train_runtime": 16889.0023,
11
- "train_samples_per_second": 63.781,
12
- "train_steps_per_second": 0.997
13
  }
 
1
  {
2
  "epoch": 5.0,
3
  "eval_f1": 0.49727767695099817,
4
+ "eval_loss": 0.053983673453330994,
5
+ "eval_runtime": 179.4692,
6
+ "eval_samples_per_second": 211.841,
7
+ "eval_steps_per_second": 3.315,
8
+ "total_flos": 8.347401051492786e+19,
9
+ "train_loss": 0.06851625873297586,
10
+ "train_runtime": 16132.5587,
11
+ "train_samples_per_second": 66.772,
12
+ "train_steps_per_second": 1.044
13
  }
command.txt CHANGED
@@ -1,7 +1,7 @@
1
  python run_image_classification_val_test.py \
2
  --train_dir /trunk/shared/eebo_data/images_cropped/ \
3
  --validation_dir /trunk/shared/eebo_data/images_cropped/ \
4
- --output_dir ./test_microsoft_dit/ \
5
  --remove_unused_columns False \
6
  --label_column_name labels \
7
  --do_train \
@@ -21,5 +21,4 @@ python run_image_classification_val_test.py \
21
  --seed 1337 \
22
  --ignore_mismatched_sizes \
23
  --image_column_name image_url \
24
- --label_column_name label \
25
- --model_name_or_path microsoft/dit-base-finetuned-rvlcdip
 
1
  python run_image_classification_val_test.py \
2
  --train_dir /trunk/shared/eebo_data/images_cropped/ \
3
  --validation_dir /trunk/shared/eebo_data/images_cropped/ \
4
+ --output_dir ./test_default_model/ \
5
  --remove_unused_columns False \
6
  --label_column_name labels \
7
  --do_train \
 
21
  --seed 1337 \
22
  --ignore_mismatched_sizes \
23
  --image_column_name image_url \
24
+ --label_column_name label
 
config.json CHANGED
@@ -1,15 +1,10 @@
1
  {
2
- "_name_or_path": "microsoft/dit-base-finetuned-rvlcdip",
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,55 +19,13 @@
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
- "stage3",
34
- "stage5",
35
- "stage7",
36
- "stage11"
37
- ],
38
- "out_indices": [
39
- 3,
40
- 5,
41
- 7,
42
- 11
43
- ],
44
  "patch_size": 16,
45
- "pool_scales": [
46
- 1,
47
- 2,
48
- 3,
49
- 6
50
- ],
51
  "problem_type": "regression",
52
- "reshape_hidden_states": true,
53
- "semantic_loss_ignore_index": 255,
54
- "stage_names": [
55
- "stem",
56
- "stage1",
57
- "stage2",
58
- "stage3",
59
- "stage4",
60
- "stage5",
61
- "stage6",
62
- "stage7",
63
- "stage8",
64
- "stage9",
65
- "stage10",
66
- "stage11",
67
- "stage12"
68
- ],
69
  "torch_dtype": "float32",
70
- "transformers_version": "4.43.0.dev0",
71
- "use_absolute_position_embeddings": true,
72
- "use_auxiliary_head": true,
73
- "use_mask_token": false,
74
- "use_mean_pooling": true,
75
- "use_relative_position_bias": false,
76
- "use_shared_relative_position_bias": false,
77
- "vocab_size": 8192
78
  }
 
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
  "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
  }
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 5.0,
3
  "eval_f1": 0.49727767695099817,
4
- "eval_loss": 0.041273970156908035,
5
- "eval_runtime": 174.2599,
6
- "eval_samples_per_second": 218.174,
7
- "eval_steps_per_second": 3.414
8
  }
 
1
  {
2
  "epoch": 5.0,
3
  "eval_f1": 0.49727767695099817,
4
+ "eval_loss": 0.053983673453330994,
5
+ "eval_runtime": 179.4692,
6
+ "eval_samples_per_second": 211.841,
7
+ "eval_steps_per_second": 3.315
8
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cc7c1b9c24ce994486bc382c646f1e57f1d4cdbb019f7de9d9d07deadc45da51
3
- size 343258940
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:472717343c19fb122138fc3fa7339902c64523b4ea7aca0a6a002c718da0878b
3
+ size 343220892
preprocessor_config.json CHANGED
@@ -1,11 +1,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,7 +7,7 @@
13
  0.5,
14
  0.5
15
  ],
16
- "image_processor_type": "BeitImageProcessor",
17
  "image_std": [
18
  0.5,
19
  0.5,
 
1
  {
 
 
 
 
 
2
  "do_normalize": true,
 
3
  "do_rescale": true,
4
  "do_resize": true,
5
  "image_mean": [
 
7
  0.5,
8
  0.5
9
  ],
10
+ "image_processor_type": "ViTImageProcessor",
11
  "image_std": [
12
  0.5,
13
  0.5,
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 5.0,
3
- "total_flos": 8.348297673446728e+19,
4
- "train_loss": 0.062463992788064436,
5
- "train_runtime": 16889.0023,
6
- "train_samples_per_second": 63.781,
7
- "train_steps_per_second": 0.997
8
  }
 
1
  {
2
  "epoch": 5.0,
3
+ "total_flos": 8.347401051492786e+19,
4
+ "train_loss": 0.06851625873297586,
5
+ "train_runtime": 16132.5587,
6
+ "train_samples_per_second": 66.772,
7
+ "train_steps_per_second": 1.044
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:28e008fa9d7fba0a7a650bf2907bd71f3c36c3f0d4b0f597443c926a867bb792
3
  size 5240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed5aef3055dd53bf4f8ec7348a7b422c91fc0c593b27ae163b5ab87b8f191b23
3
  size 5240