andrianangg commited on
Commit
1b4b598
·
verified ·
1 Parent(s): 189afb9

trocr-invoice

Browse files
README.md CHANGED
@@ -14,8 +14,13 @@ should probably proofread and complete it, then remove this comment. -->
14
 
15
  This model is a fine-tuned version of [microsoft/trocr-base-stage1](https://huggingface.co/microsoft/trocr-base-stage1) on an unknown dataset.
16
  It achieves the following results on the evaluation set:
17
- - Loss: 0.4098
18
- - Cer: 0.0324
 
 
 
 
 
19
 
20
  ## Model description
21
 
@@ -40,25 +45,9 @@ The following hyperparameters were used during training:
40
  - seed: 42
41
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
42
  - lr_scheduler_type: linear
43
- - num_epochs: 10
44
  - mixed_precision_training: Native AMP
45
 
46
- ### Training results
47
-
48
- | Training Loss | Epoch | Step | Validation Loss | Cer |
49
- |:-------------:|:-----:|:----:|:---------------:|:------:|
50
- | No log | 1.0 | 390 | 0.5628 | 0.1036 |
51
- | 0.9189 | 2.0 | 780 | 0.4374 | 0.0472 |
52
- | 0.4488 | 3.0 | 1170 | 0.4076 | 0.0300 |
53
- | 0.378 | 4.0 | 1560 | 0.3955 | 0.0239 |
54
- | 0.378 | 5.0 | 1950 | 0.3553 | 0.0150 |
55
- | 0.336 | 6.0 | 2340 | 0.3574 | 0.0132 |
56
- | 0.3207 | 7.0 | 2730 | 0.3441 | 0.0103 |
57
- | 0.3079 | 8.0 | 3120 | 0.3473 | 0.0121 |
58
- | 0.26 | 9.0 | 3510 | 0.3490 | 0.0121 |
59
- | 0.26 | 10.0 | 3900 | 0.3513 | 0.0113 |
60
-
61
-
62
  ### Framework versions
63
 
64
  - Transformers 4.42.4
 
14
 
15
  This model is a fine-tuned version of [microsoft/trocr-base-stage1](https://huggingface.co/microsoft/trocr-base-stage1) on an unknown dataset.
16
  It achieves the following results on the evaluation set:
17
+ - eval_loss: 1.7428
18
+ - eval_cer: 0.1176
19
+ - eval_runtime: 578.8949
20
+ - eval_samples_per_second: 7.692
21
+ - eval_steps_per_second: 0.962
22
+ - epoch: 2.0
23
+ - step: 8906
24
 
25
  ## Model description
26
 
 
45
  - seed: 42
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
  - lr_scheduler_type: linear
48
+ - num_epochs: 3
49
  - mixed_precision_training: Native AMP
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  ### Framework versions
52
 
53
  - Transformers 4.42.4
config.json CHANGED
@@ -165,7 +165,7 @@
165
  "eos_token_id": 2,
166
  "is_encoder_decoder": true,
167
  "length_penalty": 2.0,
168
- "max_length": 64,
169
  "model_type": "vision-encoder-decoder",
170
  "no_repeat_ngram_size": 3,
171
  "num_beams": 4,
 
165
  "eos_token_id": 2,
166
  "is_encoder_decoder": true,
167
  "length_penalty": 2.0,
168
+ "max_length": 128,
169
  "model_type": "vision-encoder-decoder",
170
  "no_repeat_ngram_size": 3,
171
  "num_beams": 4,
generation_config.json CHANGED
@@ -4,7 +4,7 @@
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,
 
4
  "early_stopping": true,
5
  "eos_token_id": 2,
6
  "length_penalty": 2.0,
7
+ "max_length": 128,
8
  "no_repeat_ngram_size": 3,
9
  "num_beams": 4,
10
  "pad_token_id": 1,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:749514458b6c6e60e2e7d9682a44e51d4bc0e8d4747718b9297b016e838eb5b8
3
  size 1539518812
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecc40fd68bb1f9dd2369f6c9345c46a6f2a066663781d7640a5753e340aa05b7
3
  size 1539518812
runs/Jul20_14-29-49_201cff9e7870/events.out.tfevents.1721485800.201cff9e7870.898.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29ff7c640ff29b043732bcd9791978eaa700f3395b7ee00e8186402ed96235a8
3
+ size 9130
runs/Jul20_14-33-52_201cff9e7870/events.out.tfevents.1721486033.201cff9e7870.898.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f19e4b13b4d02e151f09925cc4bcfffd8635912762e1c4e076fb839016cad5fb
3
+ size 8280
runs/Jul20_14-35-19_201cff9e7870/events.out.tfevents.1721486120.201cff9e7870.9490.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9b2702c55e81fad12615947b9e7abc521d8d9e96d03b11a7bcc8f047ad6e31f
3
+ size 13775
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6d361a886d0b23c9cae2e40a342f7001ef8801a281aaf2d29d0249bb45ac5521
3
  size 5304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62ed26fe8d87087b3c7cdaa09993b1a6c804d0ac6d7afd2b96ed42809ca8bf4a
3
  size 5304