Humayoun commited on
Commit
cca8b4a
·
1 Parent(s): 2338329

End of training

Browse files
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ model-index:
5
+ - name: TrOCRTraining2
6
+ results: []
7
+ ---
8
+
9
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
10
+ should probably proofread and complete it, then remove this comment. -->
11
+
12
+ # TrOCRTraining2
13
+
14
+ This model is a fine-tuned version of [microsoft/trocr-base-stage1](https://huggingface.co/microsoft/trocr-base-stage1) on an unknown dataset.
15
+ It achieves the following results on the evaluation set:
16
+ - Loss: 0.4589
17
+ - Cer: 0.0115
18
+
19
+ ## Model description
20
+
21
+ More information needed
22
+
23
+ ## Intended uses & limitations
24
+
25
+ More information needed
26
+
27
+ ## Training and evaluation data
28
+
29
+ More information needed
30
+
31
+ ## Training procedure
32
+
33
+ ### Training hyperparameters
34
+
35
+ The following hyperparameters were used during training:
36
+ - learning_rate: 5e-05
37
+ - train_batch_size: 8
38
+ - eval_batch_size: 8
39
+ - seed: 42
40
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
41
+ - lr_scheduler_type: linear
42
+ - num_epochs: 15
43
+
44
+ ### Training results
45
+
46
+ | Training Loss | Epoch | Step | Validation Loss | Cer |
47
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
48
+ | 0.7331 | 1.06 | 50 | 0.8204 | 0.1775 |
49
+ | 0.4908 | 2.13 | 100 | 0.5457 | 0.0229 |
50
+ | 0.4912 | 3.19 | 150 | 0.5845 | 0.0229 |
51
+ | 0.4713 | 4.26 | 200 | 0.5433 | 0.0137 |
52
+ | 0.4435 | 5.32 | 250 | 0.4988 | 0.0126 |
53
+ | 0.4152 | 6.38 | 300 | 0.5058 | 0.0137 |
54
+ | 0.3026 | 7.45 | 350 | 0.4947 | 0.0126 |
55
+ | 0.4133 | 8.51 | 400 | 0.4988 | 0.0115 |
56
+ | 0.4029 | 9.57 | 450 | 0.4906 | 0.0160 |
57
+ | 0.3439 | 10.64 | 500 | 0.4790 | 0.0160 |
58
+ | 0.3386 | 11.7 | 550 | 0.4661 | 0.0103 |
59
+ | 0.3511 | 12.77 | 600 | 0.4617 | 0.0115 |
60
+ | 0.374 | 13.83 | 650 | 0.4629 | 0.0149 |
61
+ | 0.3357 | 14.89 | 700 | 0.4589 | 0.0115 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.28.1
67
+ - Pytorch 2.0.0+cu118
68
+ - Datasets 2.12.0
69
+ - Tokenizers 0.13.3
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "decoder_start_token_id": 0,
4
+ "early_stopping": true,
5
+ "eos_token_id": 2,
6
+ "length_penalty": 2.0,
7
+ "max_length": 64,
8
+ "no_repeat_ngram_size": 3,
9
+ "num_beams": 4,
10
+ "pad_token_id": 1,
11
+ "transformers_version": "4.28.1",
12
+ "use_cache": false
13
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json CHANGED
@@ -13,6 +13,7 @@
13
  0.5,
14
  0.5
15
  ],
 
16
  "resample": 2,
17
  "rescale_factor": 0.00392156862745098,
18
  "size": {
 
13
  0.5,
14
  0.5
15
  ],
16
+ "processor_class": "TrOCRProcessor",
17
  "resample": 2,
18
  "rescale_factor": 0.00392156862745098,
19
  "size": {
runs/May09_21-59-15_945d7895ffaf/events.out.tfevents.1683669917.945d7895ffaf.413.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:611f689d8d0e416e336bed1d5d0f462b90fe9cc8e7df951da41588df0aa0dd75
3
- size 67888
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:566dbe2c5d102428600093b9f3d7bd64f35e59abe23f067b1ddda2ed3398e84b
3
+ size 68242
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "clean_up_tokenization_spaces": true,
12
+ "cls_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "eos_token": {
21
+ "__type": "AddedToken",
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "errors": "replace",
29
+ "mask_token": {
30
+ "__type": "AddedToken",
31
+ "content": "<mask>",
32
+ "lstrip": true,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "model_max_length": 512,
38
+ "pad_token": {
39
+ "__type": "AddedToken",
40
+ "content": "<pad>",
41
+ "lstrip": false,
42
+ "normalized": true,
43
+ "rstrip": false,
44
+ "single_word": false
45
+ },
46
+ "processor_class": "TrOCRProcessor",
47
+ "sep_token": {
48
+ "__type": "AddedToken",
49
+ "content": "</s>",
50
+ "lstrip": false,
51
+ "normalized": true,
52
+ "rstrip": false,
53
+ "single_word": false
54
+ },
55
+ "tokenizer_class": "RobertaTokenizer",
56
+ "trim_offsets": true,
57
+ "unk_token": {
58
+ "__type": "AddedToken",
59
+ "content": "<unk>",
60
+ "lstrip": false,
61
+ "normalized": true,
62
+ "rstrip": false,
63
+ "single_word": false
64
+ }
65
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff